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.
Syntax Description
all
configured
dynamic
sticky
address mac-address
interface interface-id
Defaults
No default is defined.
Command Modes
Privileged EXEC
Command History
Release
12.1(11)EA1
12.1(14)EA1
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
Catalyst 2950 and Catalyst 2955 Switch Command Reference
2-50
clear port-security {all | configured | dynamic | sticky} [address mac-address] | [interface
interface-id]
Delete all secure MAC addresses.
Delete all configured secure MAC addresses.
Delete all dynamic secure MAC addresses.
Delete all sticky secure MAC addresses.
(Optional) Delete the specified secure MAC address.
(Optional) Delete secure MAC addresses on the specified physical port or
port channel.
Modification
This command was introduced.
The all and configured keywords were added.
Chapter 2
Catalyst 2950 and 2955 Cisco IOS Commands
OL-10102-01