show mac address-table bridge-domain

Use this command to display MAC address entries, either dynamically learned or statically configured, associated with bridge domains. This command helps verify how MAC addresses are mapped to subinterfaces or bridge-domain IDs.

Command Syntax

Copy
show mac address-table (dynamic | static) bridge-domain {interface IFNAME |address MAC | (id <1-2147483647> | all)}

Parameters

dynamic bridge-domain

Displays MAC addresses that have been dynamically learned through data plane traffic.

static bridge-domain

Displays MAC addresses that have been manually configured using static MAC commands.

interface IFNAME

Displays MAC entries associated with a specific interface or subinterface (e.g., xe1.1).

address MAC

Displays information about a specific MAC address (in HHHH.HHHH.HHHH format).

id <1-2147483647>

Displays MAC entries within a specific bridge-domain ID.

all

Displays MAC entries across all bridge-domains.

Command Mode

Execution mode

Applicability

Introduced in OcNOS version 6.6.1.

Examples

Display MAC entries in a specific bridge-domain (ID 1):

Copy
OcNOS#show mac address-table dynamic bridge-domain id 1
Bridge  MAC Address     Type     Ports
------- --------------- -------- --------
1       0022.3344.5566  dynamic  xe1.1
 
OcNOS#show mac address-table static bridge-domain id 1
Bridge  MAC Address     Type      Ports
------+---------------+---------+---------+
1 0000.0100.0001  static    sa1.1

Display MAC entries for all bridge-domains:

Copy
OcNOS#show mac address-table dynamic bridge-domain all
 
Bridge  MAC Address     Type      Ports
------+---------------+---------+---------+
 
1    0000.0100.0001  static    xe1.1
2 0010.9400.0002  static    xe2.1
 
OcNOS#show mac address-table static bridge-domain all
Bridge  MAC Address     Type      Ports
------+---------------+---------+---------+
100    0000.0100.0001  static    sa1.1
100    0000.0100.0002  static    sa2.1

Display MAC entries learned on a specific interface:

Copy
OcNOS#show mac address-table dynamic bridge-domain interface xe1.1
Bridge  MAC Address     Type     Ports
------- --------------- -------- --------
1       0022.3344.5566  dynamic  xe1.1
 
OcNOS#show mac address-table static bridge-domain interface sa1.1
Bridge  MAC Address     Type      Ports
------+---------------+---------+---------+
100    0000.0100.0001  static    sa1.1

Display MAC entries learned on a specific MAC address:

Copy
OcNOS#show mac address-table dynamic bridge-domain address 0022.3344.5566
Bridge MAC Address Type Ports
------+---------------+---------+---------+
1 0022.3344.5566 dynamic xe1.1
 
OcNOS#show mac address-table static bridge-domain address 0000.0100.0001
Bridge  MAC Address     Type      Ports
------+---------------+---------+---------+
100    0000.0100.0001  static    sa1.1
Table 35.

show mac address-table dynamic bridge-domain output fields

Field

Description

Bridge

Bridge-Domain ID. Identifies the Layer 2 broadcast domain in which the MAC address is learned.

MAC Address

The 48-bit MAC address (in HHHH.HHHH.HHHH format) learned within the bridge-domain.

Type

Indicates how the MAC address was learned. In this output, it is typically dynamic or static.

Ports

The interface or subinterface (e.g., xe1.1) where the MAC address was learned. If the MAC is reachable via multiple ports (in case of EVPN or port aggregation), multiple interfaces may be listed.