Celestica Documentation Portal

Find your product documents here

show mac address-table

Displays the static and dynamic mac address information in the device.

Syntaxshow mac address-table [{vlan <vlan-id> | interface Ethernet <eth-if-id> | interface PortChannel <po-if-id>}]
Command mode EXEC
Parameters
  • vlan-id – VLAN identifier.

  • eth-if-id – Ethernet interface identifier.

  • po-if-id – PortChannel identifier within the range of 1 – 256.

Usage If the optional VLAN or interface keywords are not present, entire MAC address table info will be displayed.
Supported Releases 1.0.0 or later
Click commandshow mac
Example
sonic# show mac address-table
------------------------------------------------------------------------------
MAC                 Vlan      Port                Type
------------------------------------------------------------------------------
00:00:00:00:00:0a   200       Ethernet45          dynamic
00:00:00:00:00:0c   200       Ethernet45          dynamic
00:00:00:00:00:0d   200       Ethernet45          dynamic
00:00:00:00:00:44   100       Ethernet44          static
00:00:00:00:00:45   100       PortChannel100      static
00:00:00:00:00:64   100       Ethernet44          static
00:00:00:00:0c:00   100       PortChannel100      static
------------------------------------------------------------------------------
Number of Macs displayed :7
------------------------------------------------------------------------------
sonic# show mac address-table Vlan 200
------------------------------------------------------------------------------
MAC                 Vlan      Port                Type
------------------------------------------------------------------------------
00:00:00:00:00:0a   200       Ethernet45          dynamic
00:00:00:00:00:0c   200       Ethernet45          dynamic
00:00:00:00:00:0d   200       Ethernet45          dynamic
------------------------------------------------------------------------------
Number of Macs displayed :3
------------------------------------------------------------------------------
sonic#


sonic# show mac address-table interface Ethernet 44
------------------------------------------------------------------------------
MAC                 Vlan      Port                Type
------------------------------------------------------------------------------
00:00:00:00:00:44   100       Ethernet44          static
00:00:00:00:00:64   100       Ethernet44          static
------------------------------------------------------------------------------
Number of Macs displayed :2
------------------------------------------------------------------------------
sonic#
sonic# show mac address-table interface PortChannel 100
------------------------------------------------------------------------------
MAC                 Vlan      Port                Type
------------------------------------------------------------------------------
00:00:00:00:00:45   100       PortChannel100      static
00:00:00:00:00:46   100       PortChannel100      static
------------------------------------------------------------------------------
Number of Macs displayed :2
------------------------------------------------------------------------------