loop guard
termKept in this browser · My desk
A spanning tree protection that keeps a blocked or root port from moving to forwarding when it stops receiving BPDUs, holding it in a loop-inconsistent state instead.
Spanning tree normally reads silence as a loop-free topology: Juniper's guide says an interface that stops receiving BPDUs moves to the designated, forwarding state by default, creating a potential loop. Loop guard (Cisco, Arista) or loop protection (Juniper) blocks that move; the port recovers when BPDUs return. It is off by default, and it addresses the unidirectional link that UDLD detects at a lower layer.
The failure it covers. A blocked port stays blocked as long as it hears superior BPDUs from the designated port on its segment. If those BPDUs stop arriving, because a fibre works in one direction only, a line card hangs or software fails, the port concludes it should become designated and starts forwarding, which opens the loop spanning tree was preventing. Juniper describes exactly this default and offers loop protection to block the interface or raise an alarm instead; Arista sums up loop guard as preventing loops from unidirectional failure of point-to-point links. Related guards. BPDU guard disables an edge port that receives a BPDU; root guard (restricted role in the IEEE model) stops a port from becoming the root port; storm control limits a flood once it has started; UDLD (RFC 5171, a Cisco protocol, disabled by default on the Catalyst 9300 with 15-second messages) detects one-way links at the link layer. None of them is on by default on all platforms, and BPDU filtering on a switch-facing port does the opposite of a guard.
Also known as: loop protection, loop-inconsistent
Sources
- Juniper Networks, Spanning-Tree Protocols User Guide, published 11 December 2025 (read 2026-11-16): by default an interface that stops receiving BPDUs moves to the designated (forwarding) state, creating a potential loop; loop protection holds it in a loop-inconsistent state until a BPDU arrives
- Arista Networks, EOS 4.37.0F, spanning tree protocol (read 2026-11-16 via WebFetch): loop guard prevents loops resulting from unidirectional failure of point-to-point links; root guard and BPDU guard compared
- Cisco, Catalyst 9300 IOS XE 17.12, configuring UDLD, 28 July 2023 (read 2026-11-16 via WebFetch): unidirectional links can cause spanning-tree topology loops; UDLD disabled by default