show bridge mac-table
Syntax
show bridge mac-table
<age>
<brief | count | detail | extensive>
<bridge-domain (all | bridge-domain-name)>
<global-count>
<instance instance-name>
<interface interface-name>
<mac-address>
<instance instance-name>
<vlan-id (all-vlan | vlan-id)>
Description
(MX Series routers only) Display Layer 2 MAC address information.
Options
none | Display all learned Layer 2 MAC address information. |
age | (Optional) Display age of a single mac-address. |
brief | count | detail | extensive | (Optional) Display the specified level of output. |
bridge-domain (all | bridge-domain-name) | (Optional) Display learned Layer 2 MAC addresses for all bridging domains or for the specified bridging domain. |
global-count | (Optional) Display the total number of learned Layer 2 MAC addresses on the system. |
instance instance-name | (Optional) Display learned Layer 2 MAC addresses for the specified routing instance. |
interface interface-name | (Optional) Display learned Layer 2 MAC addresses for the specified interface. |
mac-address | (Optional) Display the specified learned Layer 2 MAC address information. |
vlan-id (all-vlan | vlan-id) | (Optional) Display learned Layer 2 MAC addresses for all VLANs or for the specified VLAN. |
Additional Information
When Layer 2 protocol tunneling is enabled, the tunneling MAC address 01:00:0c:cd:cd:d0 is installed in the MAC table. When the Cisco Discovery Protocol (CDP), Spanning Tree Protocol (STP), or VLAN Trunk Protocol (VTP) is configured for Layer 2 protocol tunneling on an interface, the corresponding protocol MAC address is installed in the MAC table.
Required Privilege Level
view
Output Fields
Table 1 describes the output fields for the show bridge mac-table
command. Output fields are listed in the approximate order in which
they appear.
Field Name |
Field Description |
---|---|
Age |
Age of a single mac-address. |
|
Name of the routing instance. |
Bridging domain |
Name of the bridging domain. |
MAC address |
MAC address or addresses learned on a logical interface. |
MAC flags |
Status of MAC address learning properties for each interface:
|
Logical interface |
Name of the logical interface. |
MAC count |
Number of MAC addresses learned on the specific routing instance or interface. |
Learning interface |
Name of the logical interface on which the MAC address was learned. |
Learning VLAN |
VLAN ID of the routing instance or bridge domain in which the MAC address was learned. |
VXLAN ID/VXLAN |
VXLAN Network Identifier (VNI). |
Layer 2 flags |
Debugging flags signifying that the MAC address is present in various lists. |
Epoch |
Spanning Tree Protocol epoch number identifying when the MAC address was learned. Used for debugging. |
Sequence number |
Sequence number assigned to this MAC address. Used for debugging. |
Learning mask |
Mask of the Packet Forwarding Engines where this MAC address was learned. Used for debugging. |
IPC generation |
Creation time of the logical interface when this MAC address was learned. Used for debugging. |
Sample Output
- show bridge mac-table
- show bridge mac-table (with Layer 2 Services over GRE Interfaces)
- show bridge mac-table (with VXLAN enabled)
- show bridge mac-table age (for GE interface)
- show bridge mac-table age (for AE interface)
- show bridge mac-table count
- show bridge mac-table detail
- show bridge mac-table instance pbb-evpn
- show bridge mac-table
show bridge mac-table
user@host> show bridge mac-table MAC flags (S -static MAC, D -dynamic MAC, L -locally learned, C -Control MAC SE -Statistics enabled, NM -Non configured MAC, R -Remote PE MAC) Routing instance : default-switch Bridging domain : test1, VLAN : 1 MAC MAC Logical NH RTR address flags interface Index ID 01:00:0c:cc:cc:cc S,NM NULL 01:00:0c:cc:cc:cd S,NM NULL 01:00:0c:cd:cd:d0 S,NM NULL 64:87:88:6a:17:d0 D ae0.1 64:87:88:6a:17:f0 D ae0.1
show bridge mac-table (with Layer 2 Services over GRE Interfaces)
user@host> show bridge mac-table MAC flags (S -static MAC, D -dynamic MAC, L -locally learned SE -Statistics enabled, NM -Non configured MAC, R -Remote PE MAC) Routing instance : default-switch Bridging domain : vlan-1, VLAN : 1 MAC MAC Logical address flags interface 00:01:01:00:01:f7 D,SE gr-1/2/10.0 00:03:00:32:01:f7 D,SE gr-1/2/10.0 00:00:21:11:11:10 DL ge-1/0/0.0 00:00:21:11:11:11 DL ge-1/1/0.0 Routing instance : default-switch Bridging domain : vlan-2, VLAN : 2 MAC MAC Logical address flags interface 00:02:01:33:01:f7 D,SE gr-1/2/10.1 00:00:21:11:21:10 DL ge-1/0/0.1 00:00:21:11:21:11 DL ge-1/1/0.1
show bridge mac-table (with VXLAN enabled)
user@host> show bridge mac-table MAC flags (S -static MAC, D -dynamic MAC, L -locally learned SE -Statistics enabled, NM -Non configured MAC, R -Remote PE MAC) Routing instance : default-switch Bridging domain : vlan-1, VLAN : 1 VXLAN: Id : 100, Multicast group: 233.252.0.1 MAC MAC Logical address flags interface 00:01:01:00:01:f7 D,SE vtep.1052010 00:03:00:32:01:f7 D,SE vtep.1052011 00:00:21:11:11:10 DL ge-1/0/0.0 00:00:21:11:11:11 DL ge-1/1/0.0 Routing instance : default-switch Bridging domain : vlan-2, VLAN : 2, VXLAN : 200 VXLAN: Id : 200, Multicast group: 233.252.0.2 MAC MAC Logical address flags interface 00:02:01:33:01:f7 D,SE vtep.1052010 00:04:00:14:01:f7 D,SE vtep.1052011 00:00:21:11:21:10 DL ge-1/0/0.1 00:00:21:11:21:11 DL ge-1/1/0.1
show bridge mac-table age (for GE interface)
user@host> show vpls mac-table age 00:02:03:aa:bb:1a instance vpls_instance_1 MAC Entry Age information Current Age: 4 seconds
show bridge mac-table age (for AE interface)
user@host> show vpls mac-table age 00:02:03:aa:bb:1a instance vpls_instance_1 MAC Entry Age information Current Age on FPC1: 102 seconds Current Age on FPC2: 94 seconds
show bridge mac-table count
user@host> show bridge mac-table count 2 MAC address learned in routing instance vs1 bridge domain vlan100 MAC address count per interface within routing instance: Logical interface MAC count ge-11/0/3.0 1 ge-11/1/4.100 0 ge-11/1/1.100 0 ge-11/1/0.100 0 xe-10/2/0.100 1 xe-10/0/0.100 0 MAC address count per learn VLAN within routing instance: Learn VLAN ID MAC count 0 2 0 MAC address learned in routing instance vs1 bridge domain vlan200 MAC address count per interface within routing instance: Logical interface MAC count ge-11/1/0.200 0 ge-11/1/1.200 0 ge-11/1/4.200 0 xe-10/0/0.200 0 xe-10/2/0.200 0 MAC address count per learn VLAN within routing instance: Learn VLAN ID MAC count 0 0
show bridge mac-table detail
user@host> show bridge mac-table detail MAC address: 00:00:00:19:1c:db Routing instance: vs1 Bridging domain: vlan100 Learning interface: ge-11/0/3.0 Learning VLAN: 0 Layer 2 flags: in_ifd, in_ifl, in_vlan, kernel Epoch: 4 Sequence number: 0 Learning mask: 0x800 IPC generation: 0 MAC address: 00:00:00:59:3a:2f Routing instance: vs1 Bridging domain: vlan100 Learning interface: xe-10/2/0.100 Learning VLAN: 0 Layer 2 flags: in_ifd, in_ifl, in_vlan, kernel Epoch: 7 Sequence number: 0 Learning mask: 0x400 IPC generation: 0
show bridge mac-table instance pbb-evpn
user@host> show bridge mac-table instance pbb-evpn Routing instance : pbb-evpn Bridging domain : isid-bd10000, ISID : 10000 MAC MAC Logical NH RTR address flags interface Index ID 00:19:e2:b0:76:eb D cbp.1000 aa:bb:cc:dd:ee:f2 DC 1048576 1048576 aa:bb:cc:dd:ee:f3 DC 1048575 1048575
show bridge mac-table
user@host>run show bridge mac-table MAC flags (S -static MAC, D -dynamic MAC, L -locally learned, C -Control MAC O -OVSDB MAC, SE -Statistics enabled, NM -Non configured MAC, R -Remote PE MAC, P -Pinned MAC) Routing instance : VS-541 Bridging domain : 541, VLAN : 541 MAC MAC Logical NH RTR address flags interface Index ID 00:00:01:00:00:01 DPRC xe-0/0/3.0 00:00:02:00:00:01 DP xe-0/0/3.0
Release Information
Command introduced in Junos OS Release 8.4.
Support for PBB-EVPN instance added in Junos OS Release 16.1
MAC Flag P to indicate a MAC Pinned interface introduced in Junos OS 16.2