show mac-address-table

Syntax

show mac-address-table [hsc] [vsx-peer]

Description

Shows MAC address table information. If HSC is enabled, MAC addresses discovered by the HSC manager are also displayed.

Command context

Operator (>) or Manager (#)

Parameters

[hsc]
Displays only MAC address discovered by the HSC manager on the remote controller.
[vsx-peer]

Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed. This parameter is available on switches that support VSX.

Authority

Operators or Administrators or local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only.

Examples

Showing output when table entries exist:

switch# show mac-address-table
MAC age-time            : 300 seconds
Number of MAC addresses : 5

MAC Address          VLAN     Type       Port
--------------------------------------------------
00:00:00:00:00:05    1        dynamic    1/1/2
00:00:00:00:00:06    2        dynamic    1/1/1
00:00:00:00:00:08    3        hsc        vxlan1(10.1.1.1)
00:00:00:00:00:12    3        hsc        vxlan1(10.1.1.3)
00:00:00:00:00:34    3        hsc        vxlan1(10.1.1.4)

Showing output when there are no MAC table entries:

switch# show mac-address-table
No MAC entries found.

Showing only MAC address discovered by the HSC manager:

switch# show mac-address-table hsc
Number of MAC addresses : 3
MAC Address          VLAN     Type       Port
---------------------------------------------------------
00:00:00:00:00:08    3        hsc        vxlan1(10.1.1.1)
00:00:00:00:00:12    3        hsc        vxlan1(10.1.1.3)
00:00:00:00:00:34    3        hsc        vxlan1(10.1.1.4)