ON THIS PAGE
Verify Campus Fabric Configuration via CLI (Junos)
After building a campus fabric via Mist, you can verify the configuration using the switch CLI. To do that, initiate a shell session using the Remote Shell option on the Utilities menu on the switch details page in Mist and run the following commands.
show bgp summary
Purpose
Verify that the Border Gateway Protocol (BGP) EVPN sessions, which are a critical component of the fabric, are established correctly.
Sample Output
user@switch> show bgp summary Warning: License key missing; requires 'bgp' license Threading mode: BGP I/O Default eBGP mode: advertise - accept, receive - accept Groups: 2 Peers: 3 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending inet.0 2 2 0 0 0 0 bgp.evpn.0 20 20 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 10.255.240.3 65002 16 14 0 3 5:48 Establ inet.0: 1/1/1/0 10.255.240.4 65002 16 15 0 1 5:43 Establ inet.0: 1/1/1/0 172.16.254.2 65000 30 27 0 1 5:32 Establ bgp.evpn.0: 20/20/20/0 default-switch.evpn.0: 20/20/20/0
show bgp neighbor
Purpose
Verify detailed neighbor status, address families, received prefixes, timers, and capabilities.
Sample Output
user@switch> show bgp neighbor
Peer: 192.0.2.2+179 AS 65002 Local: 192.0.2.1+54321 AS 65001
Description: ISP-UPLINK
Group: EBGP-PEERS Routing-Instance: master
Forwarding routing-instance: master
Type: External State: Established Flags: <Sync>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Options: <Preference PeerAS Refresh>
Holdtime: 90 Preference: 170
Number of flaps: 0
Peer ID: 203.0.113.2 Local ID: 203.0.113.1
Active Holdtime: 90
Keepalive Interval: 30
Peer index: 0
BGP state: Established
Export: [ EXPORT-BGP ]
Import: [ IMPORT-BGP ]
Local Address: 192.0.2.1
Input messages:
Total 12345
Updates 25
Refreshes 3
Octets 987654
Output messages:
Total 11234
Updates 15
Refreshes 1
Octets 765432
Route Queue End-of-RIB sent: inet-unicast
Address families configured:
inet-unicast
Accepted prefixes: 150
Advertised prefixes: 18show route receive-protocol bgp
Purpose
Verify EVPN routes being received from remote VTEPs. This command displays the routes that the peer is advertising to the local switch. If a route does not appear here, the remote device is not sending it. If it appears here but not in the routing table, the route is likely being rejected by policy or another routing decision.
Sample Output
user@switch> show route receive-protocol bgp 192.0.2.2 inet.0: 25 destinations, 25 routes (25 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS Path 0.0.0.0/0 192.0.2.2 0 100 65002 I 198.51.100.0/24 192.0.2.2 10 100 65002 I 203.0.113.0/24 192.0.2.2 20 100 65002 65010 I 100.64.0.0/16 192.0.2.2 5 100 65002 I
show route advertising-protocol bgp
Purpose
Verify EVPN routes being advertised to remote VTEPs. This command displays which routes the switch is advertising to a BGP peer after export policies have been applied.
Sample Output
user@switch> show route advertising-protocol bgp 192.0.2.2 inet.0: 25 destinations, 25 routes (25 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path 10.10.10.0/24 Self 0 100 I 10.20.20.0/24 Self 0 100 I 10.30.30.0/24 Self 0 100 I 172.16.100.0/24 Self 0 100 I 203.0.113.1/32 Self 0 100 I
show route table
Purpose
Verify that the control plane has successfully learned and installed the expected
routes in the appropriate routing table. The command displays the contents of a
specified routing table (such as inet.0, evpn.0,
or a VRF table).
Sample Output
user@switch> show route table inet.0
inet.0: 25 destinations, 25 routes (25 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[BGP/170] 2d 04:31:12, localpref 100
AS path: 65002 I
> to 192.0.2.2 via ge-0/0/0.0
10.10.10.0/24 *[Direct/0] 3d 10:15:47
> via irb.10
10.20.20.0/24 *[Direct/0] 3d 10:15:47
> via irb.20
172.16.100.0/24 *[Static/5] 2d 22:10:02
> to 10.10.10.254 via irb.10
192.0.2.0/30 *[Direct/0] 3d 10:15:47
> via ge-0/0/0.0
203.0.113.1/32 *[Local/0] 3d 10:15:47
Local via lo0.0show evpn instance extensive
Purpose
Verify EVPN instance state, route counts, VNIs, route distinguishers, and route targets. This command displays a high-level view of the health and state of the EVPN instances (EVIs), including their associated interfaces, neighbors, bridge domains, IRBs, and Ethernet Segments (ESIs).
Sample Output
user@switch> show evpn instance extensive
Instance: __default_evpn__
Route Distinguisher: 172.16.254.2:0
Number of bridge domains: 0
Number of neighbors: 1
Address MAC MAC+IP AD IM ES Leaf-label DCI-Peer Flow-label DT2U-SID DT2M-SID
172.16.254.1 0 0 0 0 1 NO
Instance: default-switch
Route Distinguisher: 172.16.254.2:1
Encapsulation type: VXLAN
Duplicate MAC detection threshold: 10
Duplicate MAC detection window: 20
Duplicate MAC auto-recovery time: 5
MAC database status Local Remote
MAC advertisements: 4 7
MAC+IP advertisements: 6 6
Default gateway MAC advertisements: 7 0
Number of local interfaces: 35 (1 up)
Interface name ESI Mode Status AC-Role
.local..3 00:00:00:00:00:00:00:00:00:00 single-homed Up Root
ae0.0 00:11:00:00:00:01:00:01:02:00 all-active Down Root
et-0/0/0.0 00:00:00:00:00:00:00:00:00:00 single-homed Down Root
et-0/0/1.0 00:00:00:00:00:00:00:00:00:00 single-homed Down Root
et-0/0/12.0 00:00:00:00:00:00:00:00:00:00 single-homed Down Root
et-0/0/13.0 00:00:00:00:00:00:00:00:00:00 single-homed Down Root
et-0/0/14.0 00:00:00:00:00:00:00:00:00:00 single-homed Down Root
Number of IRB interfaces: 4 (4 up)
Interface name VLAN VNI Status L3 context
irb.0 10001 Up master
irb.50 10050 Up master
irb.60 10060 Up master
irb.70 10070 Up master
Number of protect interfaces: 0
Number of bridge domains: 4
VLAN Domain-ID Intfs/up IRB-intf Mode MAC-sync v4-SG-sync v6-SG-sync
1 10001 33 0 irb.0 Extended Enabled Disabled Disabled
50 10050 1 0 irb.50 Extended Enabled Disabled Disabled
60 10060 1 0 irb.60 Extended Enabled Disabled Disabled
70 10070 1 0 irb.70 Extended Enabled Disabled Disabled
Number of neighbors: 1
Address MAC MAC+IP AD IM ES Leaf-label DCI-Peer Flow-label DT2U-SID DT2M-SID
172.16.254.1 7 6 5 4 0 NO
Number of ethernet segments: 5
ESI: 00:11:00:00:00:01:00:01:02:00
Status: Resolved
Local interface: ae0.0, Status: Down
Number of remote PEs connected: 1
Remote-PE MAC-label Aliasing-label Mode
172.16.254.1 0 0 all-active
DF Election Algorithm: MOD based
Designated forwarder: 172.16.254.1
Last designated forwarder update: Jul 12 18:26:37
ESI: 05:00:00:fd:e8:00:00:27:11:00
Local interface: irb.0, Status: Up/Forwarding
ESI: 05:00:00:fd:e8:00:00:27:42:00
Local interface: irb.50, Status: Up/Forwarding
Number of remote PEs connected: 1
Remote-PE MAC-label Aliasing-label Mode
172.16.254.1 10050 0 all-active
show vlans
Purpose
Verify VLAN-to-VNI mappings and view the remote VTEPs associated with each VLAN. When VLAN traffic enters the fabric, the VLAN is mapped to a corresponding VNI, allowing traffic to be forwarded to EVPN-VXLAN devices participating in that VLAN/VNI segment. This command helps confirm that VLANs are mapped correctly and that the expected remote VTEPs are available for forwarding.
Sample Output
user@switch> show vlans
Routing instance VLAN name Tag Interfaces
default-switch EVPN_PRINTERS 60
ae0.0
esi.1756*
vtep.32769*
default-switch EVPN_WAREHOUSE 70
ae0.0
esi.1757*
vtep.32769*
default-switch EVPN_WIFI 50
ae0.0
esi.1755*
vtep.32769*
default-switch default 1
et-0/0/0.0
vtep.32769*
{master:0}
root@jtac-qfx10002-36q-r2023>
show ethernet-switching vxlan-tunnel-end-point source
Purpose
Verify the local VXLAN Tunnel Endpoint (VTEP) configuration on a campus fabric switch. The command displays the source VTEP address, the associated loopback interface, and the VLAN/VNI mappings that are advertised into the EVPN-VXLAN fabric. It also shows the VTEP interface used for VXLAN encapsulation and decapsulation.
Sample Output
user@switch> show ethernet-switching vxlan-tunnel-end-point source Logical System Name Id SVTEP-IP IFL L3-Idx SVTEP-Mode ELP-SVTEP-IP <default> 0 172.16.254.2 lo0.0 0 L2-RTT Bridge Domain VNID Translation-VNID MC-Group-IP Interface default-switch EVPN_PRINTERS+60 10060 0.0.0.0 vtep.32768 default-switch EVPN_WAREHOUSE+70 10070 0.0.0.0 vtep.32768 default-switch EVPN_WIFI+50 10050 0.0.0.0 vtep.32768 default-switch default+1 10001 0.0.0.0 vtep.32768
show ethernet-switching vxlan-tunnel-end-point remote
Purpose
Verify that the switch has discovered remote VXLAN Tunnel Endpoints (VTEPs) through EVPN and has installed the corresponding VXLAN forwarding information in the forwarding table. This command displays the remote VTEP IP addresses, associated VTEP interfaces, next-hop information, and the VNIs reachable through each remote VTEP. It is particularly useful for validating VXLAN overlay connectivity and EVPN route propagation across the fabric.
Sample Output
user@switch> show ethernet-switching vxlan-tunnel-end-point remote
Logical System Name Id SVTEP-IP IFL L3-Idx SVTEP-Mode ELP-SVTEP-IP
<default> 0 172.16.254.2 lo0.0 0
RVTEP-IP L2-RTT IFL-Idx Interface NH-Id RVTEP-Mode ELP-IP Flags
172.16.254.1 default-switch 572 vtep.32769 1753 RNVE
VNID MC-Group-IP
10070 0.0.0.0
10060 0.0.0.0
10001 0.0.0.0
10050 0.0.0.0
show interfaces vtep
Purpose
Verify that the VXLAN Tunnel Endpoints (VTEPs) in the campus fabric are operational and that VXLAN tunnels have been correctly established between fabric nodes. The command displays local and remote VTEP interfaces, their associated routing instances, operational status, and VXLAN traffic statistics.
A local VTEP interface is automatically created for the switch's own VXLAN endpoint, while a remote VTEP interface is automatically created for each remote VTEP discovered through EVPN route advertisements. These remote VTEP interfaces are used to encapsulate and decapsulate VXLAN traffic exchanged with other fabric nodes.
Sample Output
user@switch> show interfaces vtep
Physical interface: vtep, Enabled, Physical link is Up
Interface index: 641, SNMP ifIndex: 508
Type: Software-Pseudo, Link-level type: VxLAN-Tunnel-Endpoint,
MTU: Unlimited,
Speed: Unlimited
Device flags : Present Running
Link type : Full-Duplex
Link flags : None
Last flapped : Never
Input packets : 0
Output packets : 0
Logical interface vtep.32768 (Index 570) (SNMP ifIndex 562)
Flags: Up SNMP-Traps 0x4000 Encapsulation: ENET2
VXLAN Endpoint Type: Source,
VXLAN Endpoint Address: 172.16.254.2,
L2 Routing Instance: default-switch,
L3 Routing Instance: default
Input packets : 0
Output packets: 0
Logical interface vtep.32769 (Index 572) (SNMP ifIndex 563)
Flags: Up SNMP-Traps Encapsulation: ENET2
VXLAN Endpoint Type: Remote,
VXLAN Endpoint Address: 172.16.254.1,
L2 Routing Instance: default-switch,
L3 Routing Instance: default
Input packets : 4605
Output packets: 9226
Protocol eth-switch, MTU: Unlimited
Flags: Trunk-Mode, 0xc000000
show evpn database
Purpose
Verify local and remote MAC/IP route learning. This command displays the addresses learned locally and remotely. If a particular MAC address does not appear in the database, its source should be traced to the originating device or interface. The connected switch configuration should also be verified to ensure that the required EVPN settings are configured correctly.
Output
user@switch> show evpn database
Instance: default-switch
VLAN DomainId MAC address Active source Timestamp IP address
10001 c8:e7:f0:e3:87:f6 172.16.254.1 Jul 12 18:26:24
10001 c8:e7:f0:e3:a7:fe irb.0 Jul 12 18:26:12
10050 00:00:5e:00:01:01 05:00:00:fd:e8:00:00:27:42:00 Jul 12 18:26:25 192.168.50.254
10050 c8:e7:f0:e3:87:f6 172.16.254.1 Jul 12 18:26:24 192.168.50.3
10050 c8:e7:f0:e3:a7:fe irb.50 Jul 12 18:26:25 192.168.50.2
10060 00:00:5e:00:01:01 05:00:00:fd:e8:00:00:27:4c:00 Jul 12 18:26:25 192.168.60.254
10060 c8:e7:f0:e3:87:f6 172.16.254.1 Jul 12 18:26:24 192.168.60.3
10060 c8:e7:f0:e3:a7:fe irb.60 Jul 12 18:26:25 192.168.60.2
10070 00:00:5e:00:01:01 05:00:00:fd:e8:00:00:27:56:00 Jul 12 18:26:25 192.168.70.254
10070 c8:e7:f0:e3:87:f6 172.16.254.1 Jul 12 18:26:24 192.168.70.3
10070 c8:e7:f0:e3:a7:fe irb.70 Jul 12 18:26:25 192.168.70.2
show ethernet-switching table
Purpose
Verify that MAC addresses learned through EVPN have been installed in the forwarding table. It displays the Ethernet switching table containing learned Layer 2 MAC address information.
Sample Output
user@switch> show ethernet-switching table
MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static
SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC)
Ethernet switching table : 20 entries, 20 learned
Routing instance : default-switch
Vlan MAC MAC Logical Active
name address flags interface source
T1-1 00:00:5e:00:01:01 DR,SD esi.1759 05:00:00:fe:50:00:00:00:65:00
T1-1 02:05:86:71:4c:00 D vtep.32770 10.0.255.2
T1-1 02:05:86:71:cd:00 D vtep.32769 10.0.255.1
T1-1 4c:96:14:4a:a4:80 DL ae0.0
T1-2 00:00:5e:00:01:01 DR,SD esi.1760 05:00:00:fe:50:00:00:00:66:00
T1-2 02:05:86:71:4c:00 D vtep.32770 10.0.255.2
T1-2 02:05:86:71:cd:00 D vtep.32769 10.0.255.1
T1-2 4c:96:14:4a:a4:80 DL ae0.0
T2-1 00:00:5e:00:01:01 DR,SD esi.1761 05:00:00:fe:50:00:00:00:c9:00
T2-1 02:05:86:71:4c:00 D vtep.32770 10.0.255.2
T2-1 02:05:86:71:cd:00 D vtep.32769 10.0.255.1
T2-1 4c:96:14:4a:a4:80 DL ae0.0
T2-2 00:00:5e:00:01:01 DR,SD esi.1762 05:00:00:fe:50:00:00:00:ca:00
T2-2 02:05:86:71:4c:00 D vtep.32770 10.0.255.2
T2-2 02:05:86:71:cd:00 D vtep.32769 10.0.255.1
T2-2 4c:96:14:4a:a4:80 DL ae0.0
T3-1 00:00:5e:00:01:01 DR,SD esi.1763 05:00:00:fe:50:00:00:01:2d:00
T3-1 00:0c:29:f4:41:bb D xe-0/0/3.0
T3-1 02:05:86:71:4c:00 D vtep.32770 10.0.255.2
T3-1 02:05:86:71:cd:00 D vtep.32769 10.0.255.1