Specifications
2-26
Catalyst 2950 and Catalyst 2955 Switch Command Reference
78-15304-01
Chapter 2 Cisco IOS Commands
clear port-security dynamic
clear port-security dynamic
Use the clear port-security dynamic privileged EXEC command to delete from the MAC address table
a specific dynamic secure address or all the dynamic secure addresses on an interface.
clear port-security dynamic [address mac-addr | interface interface-id]
Syntax Description
Defaults No default is defined.
Command Modes Privileged EXEC
Command History
Examples This example shows how to remove a specific 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
This example shows how to remove all the dynamic secure addresses from the address table:
Switch# clear port-security dynamic
You can verify that the information was deleted by entering the show port-security privileged EXEC
command.
Related Commands
address mac-addr (Optional) Delete the specified dynamic secure MAC address.
interface interface-id (Optional) Delete all the dynamic secure MAC addresses on the specified
physical port or port channel.
Release Modification
12.1(11)EA1 This command was first introduced.
Command Description
show port-security Displays the port security settings defined for an interface or for
the switch.
switchport port-security Enables port security on an interface.
switchport port-security
mac-address mac-address
Configures secure MAC addresses.
switchport port-security maximum
value
Configures a maximum number of secure MAC addresses on a
secure interface.