2-50
Catalyst 2950 and Catalyst 2955 Switch Command Reference
OL-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
clear port-security
clear port-security
Use the clear port-security privileged EXEC command to delete from the MAC address table all secure
addresses, all configured secure addresses, or a specific or all dynamic or sticky secure address on an
interface or on the switch.
clear port-security {all | configured | dynamic | sticky} [address mac-address] | [interface
interface-id]
Syntax Description
Defaults No default is defined.
Command Modes Privileged EXEC
Command History
Usage Guidelines If you enter the clear port-security all privileged EXEC command, the switch removes all secure MAC
addresses from the MAC address table.
If you enter the clear port-security configured address mac-address command, the switch removes the
specified secure MAC address from the MAC address table.
If you enter the clear port-security dynamic interface interface-id command, the switch removes all
dynamic secure MAC addresses on an interface from the MAC address table.
If you enter the clear port-security sticky command, the switch removes all sticky secure MAC
addresses from the MAC address table.
Examples This example shows how to remove all secure addresses from the MAC address table:
Switch# clear port-security all
This example shows how to remove a configured secure address from the MAC address table:
Switch# clear port-security configured address 0008.0070.0007
all Delete all secure MAC addresses.
configured Delete all configured secure MAC addresses.
dynamic Delete all dynamic secure MAC addresses.
sticky Delete all sticky secure MAC addresses.
address mac-address (Optional) Delete the specified secure MAC address.
interface interface-id (Optional) Delete secure MAC addresses on the specified physical port or
port channel.
Release Modification
12.1(11)EA1 This command was introduced.
12.1(14)EA1 The all and configured keywords were added.