Loop Guard
Cheat sheet · https://pcornel.dk/topic.php?topic=615
Answer
Loop Guard protects blocking ports on redundant links: if a port stops receiving BPDUs (for example due to a unidirectional link), it moves to loop-inconsistent instead of wrongly going to forwarding and creating a loop.
Remember
A blocking port that stops hearing BPDUs would normally become designated and forward; if the link is only broken in one direction that creates a loop. Loop Guard puts the port in loop-inconsistent instead and restores it when BPDUs return. It protects ports that receive BPDUs (root, alternate); it does nothing on designated ports. It complements UDLD and cannot be combined with Root Guard on the same port.
First checks
show spanning-tree inconsistentports → Loop Inconsistent. show spanning-tree vlan 10 → BKN* with *LOOP_Inc. show spanning-tree summary → Loopguard Default. show udld <if> and interface error counters → look for a one-way link.
Commands
show spanning-tree inconsistentports- Lists ports held inconsistent by guard/protection mechanisms.
spanning-tree guard loop- Enable Loop Guard on an interface.
spanning-tree loopguard default- Enable Loop Guard globally to stop alternate/root ports from forwarding when BPDUs stop.
show udld <port>show interfaces <port> transceivershow spanning-tree activeshow spanning-tree mst
Verify in this order
Loop Guard on root/alternate ports → BPDUs stop arriving (unidirectional link, neighbour software fault) → port loop-inconsistent instead of forwarding → fix the link → BPDUs return → port recovers to its role
Where it usually breaks
physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path
Loop Guard · operational reference
| State / evidence | Interpretation |
|---|---|
| Expected BPDU | Control-plane liveness |
| BPDU loss | Guard condition |
| Loop-inconsistent | Protective block |
| UDLD | Complementary link-direction check |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=615