mac
Commands for PORT SECURITY
159
Chapter 11 Commands for PORT
SECURITY
11.1 clear port-security
Command: clear port-security {all | configured | dynamic | sticky} [[address
<mac-addr> | interface <interface-id>] [vlan <vlan-id> ]]
Function: Clear the secure MAC entries for the interfaces.
Parameter: all:All secure MAC entries on the interfaces
configured:The configured secure MAC
dynamic:The dynamic secure MAC learnt by the interface
sticky:The secure MAC of sticky
mac-addr:The specified secure MAC address
interface-id:The secure MAC entries of the specified interface
vlan-id:The specified VLAN
Default: None.
Command Mode: Admin mode
Usage Guide: None.
Example: Clear all secure MACs on the interface.
Switch#clear port-security all
11.2 show port-security
Command: show port-security [interface <interface-id>] [address | vlan]
Function: Show port-security configuration.
Parameter: interface-id:Show port-security configuration of the interface.
address: Show the secure address of the interface.
vlan: Show the maximum number of each VLAN configured on trunk/hybrid
interface.
Default: None.
Command Mode: Any modes
Usage Guide: None.
Example: Show all secure MACs on the interfaces.
Switch# show port-security address interface ethernet 1/1










