Clears the last violating MAC address records from specified ports. MAC locking tracks unauthorized MAC addresses when security violations occur; this command resets those records without rebooting the switch.
| clear | Clears (resets) a value or counter. |
| mac-locking | MAC locking port security feature. |
| last-violating-mac | Clears the last violating mac-address information. |
| port_list | Port list for which to clear violation records (for example, 1-5, 10:2). |
N/A.
Use this command after investigating and resolving MAC locking violations to clear the last violating MAC address record. This allows ports to accept traffic again and clears the audit trail of which MAC addresses triggered violations. The violation counter remains accessible via show commands for compliance tracking.
The following example clears the last violating MAC address on ports 1-5:
clear mac-locking last-violating-mac ports 1-5
This command was first available in version 34.1.1.
All platforms with MAC locking support.