show mac-addr-table

This command displays the forwarding database entries. These entries are used by the transparent bridging function to determine how to forward a received frame.

Enter all or no parameter to display the entire table. Enter a MAC Address and VLAN ID to display the table entry for the requested MAC address on the specified VLAN. Enter the count parameter to view summary information about the forwarding database table. Use the interface unit/slot/port parameter to view MAC addresses on a specific interface.

Instead of unit/slot/port, lag lag-intf-num can be used as an alternate way to specify the LAG (Link Aggregation Group) interface. lag lag-intf-num can also be used to specify the LAG interface where lag-intf-num is the LAG port number. Use the vlan vlan_id parameter to display information about MAC addresses on a specified VLAN.

Format show mac-addr-table [{macaddr vlan_id | all | count | interface {unit/slot/port | lag lag-id | vlan vlan_id} | vlan vlan_id}]
Mode Privileged EXEC

The following information displays if you do not enter a parameter, the keyword all, or the MAC address and VLAN ID.

Column
Meaning
VLAN ID The VLAN in which the MAC address is learned.
MAC Address A unicast MAC address for which the switch has forwarding and or filtering information. The format is 6 two-digit hexadecimal numbers that are separated by colons, for example 01:23:45:67:89:AB.
Interface The port through which this address was learned.
Interface Index This object indicates the ifIndex of the interface table entry associated with this port.
Status The status of this entry. The meanings of the values are:
  • Static—The value of the corresponding instance was added by the system or a user when a static MAC filter was defined. It cannot be relearned.
  • Learned—The value of the corresponding instance was learned by observing the source MAC addresses of incoming traffic, and is currently in use.
  • Management—The value of the corresponding instance (system MAC address) is also the value of an existing instance of dot1dStaticAddress. It is identified with interface 0/1. and is currently used when enabling VLANs for routing.
  • Self—The value of the corresponding instance is the address of one of the switch‘s physical interfaces (the system‘s own MAC address).
  • GMRP Learned—The value of the corresponding was learned via GMRP and applies to Multicast.
  • Other—The value of the corresponding instance does not fall into one of the other categories.

If you enter vlan vlan_id, only the MAC Address, Interface, and Status fields appear. If you enter the interface unit/slot/port parameter, in addition to the MAC Address and Status fields, the VLAN ID field also appears.

The following information displays if you enter the count parameter:

Column
Meaning
Dynamic Address count Number of MAC addresses in the forwarding database that were automatically learned.
Static Address (User-defined) count Number of MAC addresses in the forwarding database that were manually entered by a user.
Total MAC Addresses in use Number of MAC addresses currently in the forwarding database.
Total MAC Addresses available Number of MAC addresses the forwarding database can handle.