How To Configure a Port On a Cisco Switch?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1.Connect to the switch using a console cable. Use a terminal emulation program such as Putty to access the switch command line interface (CLI).
2.Login with your username and password.
3.Type “enable” at the prompt and enter your enable password.
4.Enter “configure terminal” to enter configuration mode.
5.Enter “interface [port–number]” to select the port you want to configure.
6.Set the port speed with the command “speed [speed–in–bits]”.
7.Choose the duplex setting with “duplex {half|full}”.
8.If you want to set a specific VLAN on this port, enter “switchport access vlan [vlan–number]”.
9.You can configure port security using the following commands:
• “switchport port–security” – Enables port security
• “switchport port–security maximum [max]” – Sets the maximum number of allowed MAC addresses on the port
• “switchport port–security mac–address [mac–address]” – Configures a specific MAC address for the port
• “switchport port–security violation {shutdown|restrict}” – Determines what action should be taken if a violation is detected
10.When you’re finished configuring the port, enter “exit” to return to the privileged mode.
11.Finally, enter “wr mem” to save the changes OR alternatively you can use “copy running–config startup–config” to save the changes.