Specifications
2-113
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738-01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
clear port-security
clear port-secu rity
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]] | [ int erf ace 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-secu rity 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 switc h port po rt- sec ur it y
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 tab le.
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 dyna mic secur e addres s fro m the MAC addre ss table:
Switch# clear port-security dynamic address 0008.0070.0007
This example shows how to remove all the dynamic secure addresses learned on a specific interface:
Switch# clear port-security dynamic interface gigabitethernet0/1
You can verify that the information was deleted by entering the show port-security command.
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.
interfa ce inte rface-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.