Clear Port-Security - Cisco Catalyst 4500 Series Command Reference Manual

Cisco ios command reference release ios xe 3.4.0sg and ios 15.1(2)sg
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Chapter 2
Cisco IOS Commands for the Catalyst 4500 Series Switches

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.
Syntax Description
dynamic
address mac-addr
vlan vlan-id
interface interface-id
vlan access
vlan voice
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
Release
12.2(18)EW
12.2(31)SG
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
OL-27596 -01
clear port-security dynamic [address mac-addr [vlan vlan-id]] | [interface interface-id] [vlan
access | voice]
Deletes all the dynamic secure MAC addresses.
(Optional) Deletes the specified secure MAC address.
(Optional) Deletes the specified secure MAC address from the specified
VLAN.
(Optional) Deletes the secure MAC addresses on the specified physical port
or port channel.
(Optional) Deletes the secure MAC addresses from access VLANs.
(Optional) Deletes the secure MAC addresses from voice VLANs.
Modification
This command was first introduced on the Catalyst 4500 series switch.
Add support for sticky port security.
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
clear port-security
2-125

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents