2-47
Catalyst 2950 and Catalyst 2955 Switch Command Reference
OL-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
clear mac address-table
clear mac address-table
Use the clear mac address-table privileged EXEC command to delete from the MAC address table a
specific dynamic address, all dynamic addresses on a particular interface, or all dynamic addresses on a
particular VLAN. This command also clears the MAC address notification global counters.
clear mac address-table {dynamic [address mac-addr | interface interface-id | vlan vlan-id] |
notification}
Note Beginning with Cisco IOS Release 12.1(11)EA1, the clear mac address-table command replaces the
clear mac-address-table command (with the hyphen).
Syntax Description
Defaults No default is defined.
Command Modes Privileged EXEC
Command History
Examples This example shows how to remove a specific dynamic address from the MAC address table:
Switch# clear mac address-table dynamic address 0008.0070.0007
You can verify that the information was deleted by entering the show mac address-table privileged
EXEC command.
Related Commands
dynamic Delete all dynamic MAC addresses.
dynamic address
mac-addr
(Optional) Delete the specified dynamic MAC address.
dynamic interface
interface-id
(Optional) Delete all dynamic MAC addresses on the specified physical port
or port channel.
dynamic vlan vlan-id (Optional) Delete all dynamic MAC addresses for the specified VLAN. The
range is 1 to 4094.
notification Clear the notifications in the history table and reset the counters.
Release Modification
12.1(6)EA2 This command was introduced.
12.1(9)EA1 The notification keyword was added.
12.1(11)EA1 The clear mac-address-table command was replaced by the clear mac
address-table command.