
2-496
Catalyst 2950 and Catalyst 2955 Switch Command Reference
0L-10102-02
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
switchport port-security
This example shows how to set the maximum number of addresses that a port can learn to 20:
Switch(config-if)# switchport port-security maximum 20
This example shows how to enable sticky learning and to enter two sticky secure MAC addresses:
Switch(config-if)# switchport port-security mac-address sticky
Switch(config-if)# switchport port-security mac-address sticky 0000.0000.4141
Switch(config-if)# switchport port-security mac-address sticky 0000.0000.000f
You can verify your settings by entering the show port-security privileged EXEC command.
Related Commands Command Description
clear port-security Deletes from the MAC address table a specific dynamic secure
address or all the dynamic secure addresses on an interface.
clear port-security sticky Deletes from the MAC address table a specific sticky secure address,
all the sticky secure addresses on an interface, or all the sticky secure
addresses on a switch.
show port-security Displays the port security settings defined for the port.
Kommentare zu diesen Handbüchern