Clearing MAC address entries
You can remove learned MAC address entries from the MAC address table. The types of MAC address that can be removed are as follows:
- All MAC address entries
- All MAC address entries for a specified Ethernet port
- All MAC address entries for a specified VLAN
- All specified MAC address entry in all VLANs
For example, to remove entries for the MAC address 0000.0080.00d0 in all VLANs, enter the following command at the Privilege EXEC level of the CLI.
device# clear mac-address 0000.0080.00d0
If you enter
clear mac-address without any parameter, the software removes all MAC address entries.
Use the mac-address parameter to remove a specific MAC address from all VLANs. Specify the MAC address in the following format: HHHH.HHHH.HHHH.
Use the ethernet port-num parameter to remove all MAC addresses for a specific Ethernet port.
Use the vlan-num parameter to remove all MAC addresses for a specific VLAN.