Specifications

2-108
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738-01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
clear mac-address-table
clear mac-addre ss-table
To clear the global counter entries f rom the Layer 2 MAC address table, use the c lea r
mac-address-table command.
clear mac-address-table {dynamic [{address mac_addr} | {interface interface}] [vlan vlan_id] |
notifica tion}
Syntax Description
Defaults T his command has no default settings.
Command Modes Privileged EXEC mode
Usage Guidelines E nter the clear mac-address-table dynamic command with no arguments to remove all dynamic entries
from the table.
The clear mac-address-table notification command only clears the global counters which are displayed
with show mac- address -ta ble no tifica tion command. It does not clear the global counters and the
history table of the CISCO-MAC-NATIFICATION-MIB.
Examples This example shows how to clear all the dynamic Layer 2 entries for a specific interface (gi1/1):
Switch# clear mac-address-table dynamic interface gi1/1
Switch#
This example shows how to clear the MAC address notification counters:
Switch# clear mac-address-table notification
Switch#
dynamic Specifie s dynam ic entr y types .
address mac_addr (Optional) Specifies the MAC address.
interface interface (Optional) Specifies the interface and clears the entries associated with it; valid
values are FastEthernet and GigabitEthernet.
vlan vlan_id (Optional) Specifies the VLANs; valid values are from 1 to 4094.
notifica tion Specifies MAC change notification global counters.