clear mac address-table
Use this command to clear the filtering database for the bridge. This command can be issued to do the following:
• clear the filtering database
• clear all filtering database entries configured through CLI (static)
• clear all multicast filtering database entries
• clear all multicast filtering database entries for a given VLAN or interface
• clear all dynamic or multicast database entries based on a mac address
Command Syntax
clear mac address-table (dynamic|multicast) bridge <1-32>
clear mac address-table (dynamic|multicast) (address MACADDR | interface IFNAME | vlan VID ) bridge <1-32>
clear mac address-table (dynamic|multicast) (address MACADDR | interface IFNAME | vlan VID ) (instance INST) bridge <1-32>
Parameters
dynamic
Clears all dynamic entries.
multicast
Clears all multicast filtering database entries.
address
Clear the specified MAC Address.
MACADDR
When filtering database, entries are cleared based on the MAC address.
bridge
Clears the bridge group ID. Value range is 1-32.
bridge
Clears the bridge group ID. Value range is 1-32.
cvlan
Clears all MAC address for the specified CVLAN. Value range is 1-4094.
svlan
Clears all mac address for the specified SVLAN. Value range is 1-4094.
interface
Clears all MAC address for the specified interface.
bridge
Clears the bridge group ID. Value range is 1-32.
instance
Clears MSTP instance ID. Value range is <1-63>.
vlan
Clears all MAC address for the specified VLAN. Value range is 1-4094.
bridge
Clears the bridge group ID. Value range is 1-32.
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
This example shows how to clear multicast filtering database entries:
#clear mac address-table multicast bridge 1
This example shows how to clear multicast filtering database entries for a given VLAN.
#clear mac address-table multicast vlan 2 bridge 1
This example shows how to clear all filtering database entries learned through bridge operation for a given MAC address.
#clear mac address-table dynamic address 0202.0202.0202 bridge 1
Last modified date: 07/13/2023