Chapter 2
Catalyst 3550 Switch Cisco IOS Commands
clear port-security
Use the clear port-security privileged EXEC command to delete from the MAC address table all secure
addresses or all secure addresses of a specific type (configured, dynamic, or sticky) on the switch or on
an interface.
Syntax Description
all
configured
dynamic
sticky
address mac-addr
interface interface-id
vlan
Defaults
No default is defined.
Command Modes
Privileged EXEC
Command History
Release
12.1(11)EA1
12.1(14)EA1
12.2(25)SEB
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-addr vlan vlan-id command, the switch
removes the specified secure MAC address from the specified VLAN.
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.
OL-8566-02
clear port-security {all | configured | dynamic | sticky} [[address mac-addr | interface
interface-id] [vlan {vlan-id | {access | voice}}]]
Delete all secure MAC addresses.
Delete configured secure MAC addresses.
Delete secure MAC addresses auto-learned by hardware.
Delete secure MAC addresses, either auto-learned or configured.
(Optional) Delete the specified dynamic secure MAC address.
(Optional) Delete all the dynamic secure MAC addresses on the specified
physical port or VLAN.
(Optional) Enter one of these options after you enter the vlan keyword:
•
•
•
Note
Modification
This command was introduced.
The all, configured, and vlan keywords were added.
The access and voice keywords were added.
vlan-id—On a trunk port, specify the VLAN ID of the VLAN on which
this address should be cleared.
access—On an access port, specify the VLAN as an access VLAN.
voice—On an access port, specify the VLAN as a voice VLAN.
The voice keyword is available only if voice VLAN is configured on
a port and if that port is not the access VLAN.
Catalyst 3550 Multilayer Switch Command Reference
clear port-security
2-51