clear mac-address-table
To remove a specified address (or set of addresses) from the MAC address table, use the clear
mac-address-table command in privileged EXEC mode.
clear mac-address-table [address mac-addr] [bridge-domain bridgedomain-id] [interface type number]
Syntax Description
(Optional) Specifies the MAC address to clear.
address mac-addr
(Optional) Clears the MAC address from the specified bridge
domain.
bridge-domain bridgedomain-id
(Optional) Clears the MAC address from the specified interface.
interface type number
Command Default
When no options are specified, all the dynamically added MAC addresses are cleared.
Command Modes
Privileged EXEC (#)
Command History
ModificationRelease
This command was introduced.9.3.0
Usage Guidelines
If the clear mac-address-table command is used without options, all the MAC addresses are removed. If
you specify an address but do not specify an interface, the address is deleted from all the interfaces. If you
specify an interface but do not specify an address, all the addresses on the specified interface are removed.
Examples
The following example shows how to remove a MAC address from the MAC address table on a bridge domain:
Router# clear mac-address-table address
0000.bbbb.cccc interface TenGigabitEthernet 4/1 bridge-domain 100
The following example shows how to remove a MAC address from the MAC address table on all the bridge
domains:
Router# clear mac-address-table address 0000.bbbb.cccc
Related Commands
DescriptionCommand
Displays information about the MAC address table.show mac-address-table
Cisco CPT Command Reference Guide–CTC and Documentation Release 9.3 and Cisco IOS Release 15.1(01)SA
2 78-20206-01
MAC Learning Command Reference
clear mac-address-table