2-99
Catalyst 6500 Series Switch Command Reference—Release8.4
OL-6244-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands clear port security
clear port security
To clear all MAC addresses or a speci fic MAC address from the list of secure MAC address es on a p o rt,
use the clear port security command.
clear port security mod/port mac_addr [all | vlan_list]
clear port security mod/port all [vlan_list]
Syntax Description
Defaults This command has no default settings.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines A secure MAC address can be part of different VLANs on a single port. The clear port security
mod/port mac_addr [all | vlan_list] command allows you to clear a secure MAC address on all the
VLANs of the port by entering the all keyword or on a set of VLANs by entering a vlan_list argument.
If you do not enter the all keyword or a vlan_list argument, the secure MAC address is cleared on the
native VLAN of the port, if a native VLAN exists.
The clear port security mod/port all [vlan_list] command allows you to clea r all secu re MA C address es
on either a per-VLAN basis or a per-port basis. If you enter the clear port security mod/port all
command but do not enter a vlan_list argument, all secure MAC address on the port are cleared.
Examples This example shows how to remove a specific MAC address from a list of secure addresses on the port:
Console> (enable) clear port security 4/1 00-11-22-33-44-55
00-11-22-33-44-55 cleared from secure address list list for port 4/1.
Console> (enable)
This example shows how to remove a secure MAC address from a list of VLANs:
Console> (enable) clear port security 3/37 00-00-aa-00-00-aa 20,30
Secure MAC address 00-00-aa-00-00-aa cleared for port 3/37 and Vlan 20.
Secure MAC address 00-00-aa-00-00-aa cleared for port 3/37 and Vlan 30.
Console> (enable)
mod/port Number of the module and the port on the module.
mac_addr MAC address to be deleted.
all (Optional) Clears secure MAC address for all VLANs on the port.
vlan_list (Optional) List of VLANs for which the secure MAC address is cleared.
all Clears all secure MAC addresses for the port.
vlan_list (Optional) List of VLANs for which all secure MAC addresses are cleared.