← Interview Prep

Juniper Junos — Switching Troubleshooting

Troubleshooting Layer 2 on Junos EX: the ethernet-switching table, VLANs/trunks/IRB, MAC-learning & loops, spanning tree (STP/RSTP/MSTP/VSTP) with root/loop/BPDU protection, LAG/LACP, Virtual Chassis, and L2 security (storm-control, DHCP snooping, 802.1X).

Layer-2 troubleshooting on Junos EX is about the ethernet-switching table, VLAN membership, the spanning-tree topology, and the redundancy mechanisms (LAG, Virtual Chassis). Same architecture as routing — control plane on the RE (l2cpd/eswd), forwarding on the PFE — but the failure modes are loops, black-holed VLANs, and blocked ports. Original, vendor-neutral notes aligned to the enterprise-switching troubleshooting scope.

Work L2 bottom-up: is the link up and in the right VLAN, is the MAC learned, is spanning tree forwarding on the port you expect, and — for L3 — is the IRB up?

The toolbox

ToolUse
show ethernet-switching tableThe MAC table — is the address learned, on which port/VLAN? Flapping = a loop.
show vlans [detail]VLAN-to-interface membership, tags, associated IRB.
show spanning-tree bridge / interfaceRoot bridge, this bridge's ID, port roles/states (who's blocking).
show interfaces [extensive]Link, errors/CRC, flaps, trunk vs access, native VLAN.
show lacp interfacesLAG member state, LACP up/down, why a member won't bundle.
show virtual-chassis [status]Member roles, VCP links, split detection.
monitor traffic interface, traceoptions (eswd/l2cpd)Capture / debug the L2 control plane.

VLANs & trunks

MAC learning problems

Spanning tree on Junos

Junos supports STP, RSTP (default), MSTP, and VSTP (per-VLAN, for Cisco PVST interop). Most L2 incidents are "traffic takes the wrong path" or "a loop formed."

Redundancy: LAG & Virtual Chassis

L2 security & the edge

Likely interview questions

Related: Juniper — Routing Troubleshooting · STP / RSTP / MSTP · VLAN & VXLAN.

Original content aligned to the JNCSP-ENT enterprise-switching scope — not derived from copyrighted courseware.