clear mac-addr-table
Use this command to dynamically clear learned entries from the forwarding database. Using the following options, the user can specify the set of dynamically-learned forwarding database entries to clear.
Default |
No default value. |
Format |
clear mac-addr-table {all | vlan vlanId | interface unit/slot/port | macAddr [macMask]} |
Mode |
Privileged EXEC |
Parameter |
Description |
all |
Clears dynamically learned forwarding database entries in the forwarding database table. |
vlan vlanId |
Clears dynamically learned forwarding database entries for this vlanId. |
unit/slot/port |
Clears forwarding database entries learned on for the specified interface. |
macAddr macMask |
Clears dynamically learned forwarding database entries that match the range specified by MAC address and MAC mask. When MAC mask is not entered, only specified MAC is removed from the forwarding database table. |