clear mac-address-table

Removes interface entries from the MAC address table.

Syntax

clear mac-address-table { cluster cluster-id [client [client-id] ] }
clear mac-address-table dynamic [address mac-address | bridge-domain [id ] | interface ethernet slot/port | port-channel number | logical-interface ethernet slot/port [:brk-out]. lif-id | vlan vlan-id]
clear mac-address-table mac-move [shut-list ]

Parameters

bridge-domain
Specifies clearing MAC addresses learned under a bridge domain.
id
Specifies a bridge-domain identifier.
cluster cluster-id
Specifies clearing MAC addresses from an MCT cluster ID. The ID range is 1 - 65535.
client client-id
Specifies clearning the client instance. Specify the client ID with a maximum of 64 characters.
dynamic address MAC-address
Specifies clearning the dynamic MAC address. The valid format is H.H.H (available in Privileged EXEC mode only).
interface ethernet slot/port
Specifies clearning the ethernet interface with a valid slot number/port number.
port-channel number
Specifies clearning the port channel interface number.
logical-interface ethernet slot/port [:brk-out]. lif-id
Specifies clearning the logical ethernet interface on a specified slot/port number. The breakout interface option can be used with the LIF ID.
vlan vlan id
Specifies clearning the VLAN interface. The VLAN ID range is from 1 - 4090.
shut-list
Specifies clearning the interfaces from the shutdown list.

Modes

Privileged EXEC mode.

Usage Guidelines

When a bridge-domain identifier is not specified, MAC addresses learned under all bridge domains are removed from the MAC address table. If a specific address is not specified, all dynamic mac-addresses are deleted from the MAC address table.

Examples

The following example shows how to clear MAC addresses learned under bridge domain 1 from the MAC address table.

device# clear mac-address-table dynamic bridge-domain 1

The following example shows how to clear MAC addresses learned from vlan 1 from the MAC address table.

device# clear mac-address-table dynamic vlan 1

The following example shows how to clear MAC addresses from a logical interface ethernet 3/10 LIF breakout interface.

device# clear mac-address-table dynamic 3/10:5.200