Professional Documents
Culture Documents
Swtching
Swtching
To configure the IP address assigned to the management interface on VLAN 1, enter global
configuration mode.
Switch>enable
Switch#configure terminal
Switch(config)#interface vlan 1
Set the IP address, subnet mask, and default gateway for the management interface. The IP address
must be valid for the local network where the switch is installed.
Switch(config-if)#exit
Switch(config)#end
Port security
Static
S1#conf t
S1(config)#int fa0/1
S1(config-if)#switchport mode access
S1(config-if)#switchport port -security <mac address>
S1(config-if)#end
Dynamic
S1#conf t
S1(config)#int fa0/1
S1(config-if)#switchport mode access
S1(config-if)#switchport port -security
S1(config-if)#end
Sticky
S1#conf t
S1(config)#int fa0/1
S1(config-if)#switchport mode access
S1(config-if)#switchport port -security
S1(config-if)#switchport port -security maximum 50
S1(config-if)#switchport port -security mac-address sticky
S1(config-if)#end
To verify port security settings for the switch or the specified interface, use the show port-security
interface <interface-id> command.
Use the clear port-security sticky interface <port#> access to clear any learned addresses. Next,
shutdown the port using the shutdown command. Finally, re-enable the port using the no shutdown
command.
The output from the show cdp neighbors and show cdp neighbors detail commands displays the
information that a Cisco device collects from its directly connected neighbors