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 ]
|
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.
|
None
EXEC mode
|
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
.
|
The switch maintains static MAC address entries that are saved in its startup configuration across reboots and flushes the dynamic entries.
This example shows how to display information about the entries for the MAC address table:
This example shows how to display information about the entries for the MAC address table for a specific MAC address:
This example shows how to display information about the dynamic entries for the MAC address table:
This example shows how to display information about the MAC address table for a specific interface:
This example shows how to display static entries in the MAC address table:
This example shows how to display entries in the MAC address table for a specific VLAN:
|
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.
|