Users Guide

Table Of Contents
View MAC Address Table Count
OS10# show mac address-table count
MAC Entries for all vlans :
Dynamic Address Count : 4
Static Address (User-defined) Count : 1
Total MAC Addresses in Use: 5
Clear MAC Address Table
You can clear dynamic address entries that in the MAC address table maintains.
Clear the MAC address table of dynamic entries in EXEC mode.
clear mac address-table dynamic [[all] [address mac_addr] [vlan vlan-id] [interface
{ethernet type node/slot/port[:subport] | port-channel number}]
all (Optional) Clear all dynamic entries.
address mac_address (Optional) Clear a MAC address entry.
vlan vlan-id (Optional) Clear a MAC address table entry from a VLAN number, from 1 to 4093.
ethernet node/slot/port[:subport] (Optional) Clear an Ethernet interface entry.
portchannel number (Optional) Clear a port-channel number, from 1 to 128.
Clear MAC Address Table
OS10# clear mac address-table dynamic vlan 20 interface ethernet 1/2/20
MAC Commands
clear mac address-table dynamic
Clears L2 dynamic address entries from the MAC address table.
Syntax
clear mac address-table dynamic {all | address mac_addr | vlan vlan-id |
interface {ethernet node/slot/port[:subport] | port-channel number}}
Parameters
all (Optional) Delete all MAC address table entries.
address mac_addr (Optional) Delete a configured MAC address from the address table in
nn:nn:nn:nn:nn:nn format.
vlan vlan-id (Optional) Delete all entries based on the VLAN number from the address table,
from 1 to 4093.
interface (Optional) Clear the interface type:
ethernet node/slot/port[:subport] Delete the Ethernet interface configuration from
the address table.
port-channel channel-number Delete the port-channel interface configuration from the
address table, from 1 to 128.
Default Not configured
Command Mode EXEC
Usage
Information
Use the all parameter to remove all dynamic entries from the address table.
Example
OS10# clear mac address-table dynamic all
Example (VLAN)
OS10# clear mac address-table dynamic vlan 20
Layer 2 461