show mac address-table
To display the information about the MAC address table, use the show mac address-table command.
show mac address-table [num][dynamic | static] [addressmac-address | count | interface {type slot/port | port-channel number} | vlanvlan-id]
Syntax Description
Defaults None
Command Modes Any command mode
Supported User Roles network-admin vdc-admin
Command History
Usage Guidelines A primary entry is a MAC address learned on that interface.
num (Optional) MAC address table for a specified module.
Note When you use this argument, the system displays all the entries on that module as specified by any of the following optional arguments. When you do not use this argument, the system displays only the primary entries on all modules.
dynamic (Optional) Displays information about the dynamic MAC address table entries only.
static (Optional) Displays information about the static MAC address table entries only.
address mac-address (Optional) Displays information about the MAC address table for a specific MAC address.
count (Optional) Displays number of MAC address entries for dynamic and static.
interface {type slot/port | port-channel number}]
(Optional) Specifies the interface. Use either the type of interface, the slot number, and the port number, or the port-channel number.
static (Optional) Displays information about the static MAC address table entries only.
vlan vlan-id (Optional) Displays information for a specific VLAN only; the range of valid values is from 1 to 4094.
Release Modification
S e n d d o c u m e n t c o m m e n t s t o n e x u s 7 k - d o c f e e d b a c k @ c i s c o . c o m
Cisco NX-OS Layer 2 Commands show mac address-table
Note Use the show mac address-table command without the num argument to display only the primary entries on all modules. When you use the num argument, the device displays all the entries on that module as specified by additional optional arguments.
The device maintains static MAC address entries saved in the startup-config file across reboots and flushes the dynamic entries.
The MAC address table for each virtual device context (VDC) is separate and distinct.
Note To display the MAC address for the VDC, use the show vdc command. This command does not require a license.
Examples
Note In the following examples, NTFY means notify.
This example shows how to display the information about the entries for the Layer 2 MAC address table: switch# show mac address-table
Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC age - seconds since last seen
VLAN MAC Address Type age Secure NTFY Ports
---+---+---+---+---+---+--- G - 0018.bad8.3fbd static - False False sup-eth1(R) * 3 1234.dd56.ee89 static - False False Eth2/1
This example shows how to display the information about the entries for the Layer 2 MAC address table for a specific module:
switch# show mac address-table 2 Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC age - seconds since last seen
VLAN MAC Address Type age Secure NTFY Ports
---+---+---+---+---+---+--- G - 0018.bad8.3fbd static - False False sup-eth1(R) * 3 1234.dd56.ee89 static - False False Eth2/1 3 0000.23bd.4fda dynamic 70 False False Eth1/1
This example shows how to display the information about the entries for the Layer 2 MAC address table for a specific MAC address:
switch# show mac address-table address 0018.bad8.3fbd Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC age - seconds since last seen
VLAN MAC Address Type age Secure NTFY Ports
---+---+---+---+---+---+--- G - 0018.bad8.3fbd static - False False sup-eth1(R)
S e n d d o c u m e n t c o m m e n t s t o n e x u s 7 k - d o c f e e d b a c k @ c i s c o . c o m
Cisco NX-OS Layer 2 Commands
show mac address-table
This example shows how to display the information about the dynamic entries for the Layer 2 MAC address table:
switch# show mac address-table dynamic Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC age - seconds since last seen
VLAN MAC Address Type age Secure NTFY Ports
---+---+---+---+---+---+--- * 3 0010.fcbc.3fbd dynamic 1265 False False Eth2/12
* 3 1234.dd56.ee89 dynamic 850 False False Eth2/1
This example shows how to display the information about the Layer 2 MAC address table for a specific interface:
switch# show mac address-table interface ethernet 2/13 Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC age - seconds since last seen
VLAN MAC Address Type age Secure NTFY Ports
---+---+---+---+---+---+--- * 1 1234.dd56.ee89 dynamic 0 False False Eth2/13
This example shows how to display the static entries in the Layer 2 MAC address table: switch# show mac address-table static
Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC age - seconds since last seen
VLAN MAC Address Type age Secure NTFY Ports
---+---+---+---+---+---+--- G - 0018.bad8.3fbd static - False False sup-eth1(R) * 3 1234.dd56.ee89 static - False False Eth2/1
This example shows how to display the entries in the Layer 2 MAC address table for a specific VLAN: switch# show mac address-table vlan 3
Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC age - seconds since last seen
VLAN MAC Address Type age Secure NTFY Ports
---+---+---+---+---+---+--- * 3 1234.dd56.ee89 static - False False Eth2/1
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.
S e n d d o c u m e n t c o m m e n t s t o n e x u s 7 k - d o c f e e d b a c k @ c i s c o . c o m
Cisco NX-OS Layer 2 Commands