JUNIPER MAC AND ARP COMMANDS GUIDE
==================================
1. STANDARD L2 AND L3 COMMANDS
-----------------------------
1.1. Layer 2 (L2) – Local MAC Address Table
Command:
show ethernet-switching table
Example Output:
MAC Address VLAN Logical interface Age Flags
00:11:22:33:44:55 vlan10 ge-0/0/1.0 180 D
Optional Filters:
show ethernet-switching table vlan <vlan-id>
show ethernet-switching table interface <interface-name>
1.2. Layer 3 (L3) – ARP Table
Command:
show arp
Example Output:
MAC Address Address Interface Flags
00:11:22:33:44:55 192.168.1.10 ge-0/0/1.0 none
2. VPN AND VPLS SCENARIOS
-------------------------
2.1. L2VPN – MAC Addresses over Pseudowires
Command:
show l2vpn mac-table
Example Output:
MAC Address Route Distinguisher Label Interface
aa:bb:cc:dd:ee:ff 65000:100 12345 lsi.100
Optional Filters:
show l2vpn mac-table mac-address <mac-address>
show l2vpn mac-table instance <instance-name>
2.2. L3VPN – ARP Table in a VRF
Command:
show arp routing-instance <vrf-name>
show arp no-resolve routing-instance <vrf-name>
Example Output:
MAC Address Address Interface Flags
aa:bb:cc:dd:ee:01 10.1.1.2 ge-0/0/0.100 none
2.3. VPLS Xconnect – MAC and Forwarding Info
Check VPLS Pseudowire Connections:
show vpls connection
Example Output:
VPLS Instance: vpls1
Status: Up
Remote site: 10.10.10.2
Xconnect interface: xe-0/0/2.0
Check VPLS MAC Table:
show vpls mac
Example Output:
MAC Address VPLS Instance Interface
00:11:22:33:44:55 vpls1 xe-0/0/2.0
Optionally:
show vpls forwarding-table
3. SUMMARY TABLE OF COMMANDS
----------------------------
| Scenario | Purpose | Command Example
|
|------------------|------------------------------------------|--------------------
----------------------------------|
| L2 | MAC address table | show ethernet-
switching table |
| L3 | ARP table | show arp
|
| L2VPN | MAC over pseudowires | show l2vpn mac-
table |
| L3VPN | ARP in VRF | show arp routing-
instance <vrf-name> |
| VPLS Xconnect | VPLS MAC/connection info | show vpls
connection, show vpls mac |