clear port-security
To clear a single, dynamically learned, secure MAC address or to clear all dynamically learned, secure MAC
addresses for a specific interface, use the clear port-security command.
clear port-security dynamic interface ethernet slot / port [vlan vlan-id]
clear port-security dynamic interface port-channel channel-number [vlan vlan-id]
clear port-security dynamic address address [vlan vlan-id]
Syntax Description
Specifies that you want to clear dynamically learned,
secure MAC addresses.
dynamic
Specifies the interface of the dynamically learned,
secure MAC addresses that you want to clear.
interface
Specifies the Ethernet interface of the dynamically
learned, secure MAC addresses that you want to clear.
ethernet slot/port
(Optional) Specifies the VLAN of the secure MAC
addresses to be cleared. Valid VLAN IDs are from 1
to 4096.
vlan vlan-id
Specifies the port-channel interface of the dynamically
learned, secure MAC addresses that you want to clear.
port-channel channel-number
Specifies a single MAC address to be cleared, where
address is the MAC address, in dotted hexadecimal
format.
address address
Command Default
None
Command Modes
Any command mode
Command History
ModificationRelease
Support was added for port-security on port-channel interfaces.4.2(1)
This command was introduced.4.0(1)
Cisco Nexus 7000 Series Security Command Reference
115
C Commands
clear port-security