show mac address-table

To display the information about the MAC address table, use the show mac address-table command.

show mac address-table [ address mac-address ] [ dynamic | multicast | static ] [ interface { ethernet slot / port | port-channel number }] [ vlan vlan-id ]

Syntax Description

address mac-address
(Optional) Displays information about a specific MAC address.
dynamic
(Optional) Displays information about the dynamic MAC address table entries only.
interface
(Optional) Specifies the interface. The interface can be either Ethernet or EtherChannel.
ethernet slot / port
(Optional) Specifies the Ethernet interface slot number and port number. The slot number is from 1 to 255, and the port number is from 1 to 128.
port-channel number
(Optional) Specifies the EtherChannel interface. The EtherChannel number is from 1 to 4096.
multicast
(Optional) Displays information about the multicast MAC address table entries only.
static
(Optional) Displays information about the static MAC address table entries only.
vlan vlan-id
(Optional) Displays information for a specific VLAN. The VLAN ID range is from 1 to 4094.

Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification
4.0(0)N1(1a)
This command was introduced.
4.2(1)N1(1)
The command syntax is changed to show mac address-table .

Usage Guidelines

The switch maintains static MAC address entries that are saved in its startup configuration across reboots and flushes the dynamic entries.

Examples

This example shows how to display information about the entries for the MAC address table:

switch# show mac address-table
Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC, O - Overlay MAC
age - seconds since last seen,+ - primary entry using vPC Peer-Link
VLAN MAC Address Type age Secure NTFY Ports
---------+-----------------+--------+---------+------+----+------------------
+ 100 0000.0001.0003 dynamic 0 F F Po1
+ 100 0000.0001.0004 dynamic 0 F F Po1
+ 100 0000.0001.0009 dynamic 0 F F Po1
+ 100 0000.0001.0010 dynamic 0 F F Po1
* 1 001d.7172.6c40 dynamic 300 F F Eth100/1/20
switch#
 

This example shows how to display information about the entries for the MAC address table for a specific MAC address:

switch# show mac address-table address 0018.bad8.3fbd
 

This example shows how to display information about the dynamic entries for the MAC address table:

switch# show mac address-table dynamic
Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC, O - Overlay MAC
age - seconds since last seen,+ - primary entry using vPC Peer-Link
VLAN MAC Address Type age Secure NTFY Ports
---------+-----------------+--------+---------+------+----+------------------
+ 100 0000.0001.0003 dynamic 0 F F Po1
+ 100 0000.0001.0004 dynamic 0 F F Po1
+ 100 0000.0001.0009 dynamic 0 F F Po1
+ 100 0000.0001.0010 dynamic 0 F F Po1
* 1 001d.7172.6c40 dynamic 300 F F Eth100/1/20
switch#
 

This example shows how to display information about the MAC address table for a specific interface:

switch# show mac address-table interface ethernet 1/3
 

This example shows how to display static entries in the MAC address table:

switch# show mac address-table static

This example shows how to display entries in the MAC address table for a specific VLAN:

switch# show mac address-table vlan 1
Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC, O - Overlay MAC
age - seconds since last seen,+ - primary entry using vPC Peer-Link
VLAN MAC Address Type age Secure NTFY Ports
---------+-----------------+--------+---------+------+----+------------------
* 1 001d.7172.6c40 dynamic 60 F F Eth100/1/20
switch#
 

Related Commands

Command
Description
mac address-table static
Adds static entries to the MAC address table or configures a static MAC address with IGMP snooping disabled for that address.
show mac address-table aging-time
Displays information about the time-out values for the MAC address table.
show mac address-table count
Displays the number of entries currently in the MAC address table.
show mac address-table notifications
Displays information about notifications for the MAC address table.