Clear Port-Security - Cisco 4500M Command Reference Manual

Command reference
Hide thumbs Also See for 4500M:
Table of Contents

Advertisement

clear port-security

clear port-security
To delete from the MAC address table all secure addresses, all configured secure addresses, or a specific
dynamic or sticky secure address on an interface, use the clear port-security command.
Syntax Description
all
dynamic
address mac-addr
vlan vlan-id
interface interface-id
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Usage Guidelines
If you enter the clear port-security all command, the switch removes all secure MAC addresses from
the MAC address table.
If you enter the clear port-security dynamic interface interface-id command, the switch removes all
dynamic secure MAC addresses on an interface from the MAC address table.
Command History
Release
12.2(18)EW
Examples
This example shows how to remove all secure addresses from the MAC address table:
Switch# clear port-security all
This example shows how to remove a dynamic secure address from the MAC address 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.
Related Commands
show port-security
switchport port-security
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-38
clear port-security {all | dynamic} [address mac-addr [vlan vlan-id]] | [interface interface-id]
Delete s all secure MAC addresses.
Delete s all dynamic secure MAC addresses.
(Optional) Delete s the specified secure MAC address.
(Optional) Delete s the specified secure MAC address from the specified
VLAN.
(Optional) Delete s secure MAC addresses on the specified physical port or
port channel.
Modification
This command was first introduced on the Catalyst 4500 series switch.
Chapter2
Cisco IOS Commands for the Catalyst 4500 Series Switches
78-16201-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ws-c4507r4500 series

Table of Contents