2-125
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
clear port-security
clear port-security
To delete all configured secure addresses or a specific dynamic or sticky secure address on an interface
from the MAC address table, use the clear port-security command.
clear port-security dynamic [address mac-addr [vlan vlan-id]] | [interface interface-id] [vlan
access | voice]
Syntax Description
Defaults This command has no default settings.
Command Modes Privileged EXEC mode
Usage Guidelines If you enter the clear port-security all command, the switch removes all the dynamic secure MAC
addresses from the MAC address table.
Note You can clear sticky and static secure MAC addresses one at a time with the no switchport port-security
mac-address command.
If you enter the clear port-security dynamic interface interface-id command, the switch removes all
the dynamic secure MAC addresses on an interface from the MAC address table.
Command History
Examples This example shows how to remove all the dynamic secure addresses from the MAC address table:
Switch# clear port-security dynamic
This example shows how to remove a dynamic secure address from the MAC address table:
Switch# clear port-security dynamic address 0008.0070.0007
dynamic Deletes all the dynamic secure MAC addresses.
address mac-addr (Optional) Deletes the specified secure MAC address.
vlan vlan-id (Optional) Deletes the specified secure MAC address from the specified
VLAN.
interface interface-id (Optional) Deletes the secure MAC addresses on the specified physical port
or port channel.
vlan access (Optional) Deletes the secure MAC addresses from access VLANs.
vlan voice (Optional) Deletes the secure MAC addresses from voice VLANs.
Release Modification
12.2(18)EW This command was first introduced on the Catalyst 4500 series switch.
12.2(31)SG Add support for sticky port security.