Use it on links between switches, especially fibre, and when a port is shown as loop-inconsistent.
Loop Guard Deep Reference
Loop Guard protects against a link that stops delivering BPDUs while still carrying traffic. A blocked or root port that stops hearing BPDUs is held blocked and not opened.
1. show spanning-tree inconsistentports — which port and VLANs?
2. Is the received-BPDU counter on that port standing still?
3. Check the physical link in both directions: fibre pair, optics, UDLD.
4. Only one VLAN → is it still allowed on the trunk at the other end?
5. The port recovers when BPDUs return.
Loop Guard enabled on root and alternate ports → BPDUs received every hello time → port keeps its role; BPDUs stop → loop-inconsistent → link repaired → BPDUs return → normal role
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show spanning-tree summaryVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification Verify boundary
show spanning-tree summary
show spanning-tree inconsistentports
show spanning-tree vlan 10
show spanning-tree interface TenGigabitEthernet1/1/1 detail
show logging | include LOOPGUARD
The summary states whether Loop Guard is enabled by default. inconsistentports lists blocked ports with the reason "Loop Inconsistent"; in the per-VLAN output such a port shows BKN* with type *LOOP_Inc. The interface detail shows whether Loop Guard is active and the BPDU counters — a received counter that has stopped increasing confirms the cause.
Known-good: no inconsistent ports, and the received-BPDU counter on root and alternate ports rises every two seconds.
Step 2 Failure isolation workflow Narrow the fault
- An uplink is loop-inconsistent. BPDUs are no longer received on it. Check the physical link — especially fibre and optics — and whether the neighbour is sending.
- It affects one VLAN only. That VLAN was removed from the trunk on the other side, or the neighbour stopped sending for it.
- The port recovers and blocks again repeatedly. BPDUs arrive irregularly: a failing optic, or a neighbour under heavy CPU load.
- Loop Guard was enabled and a link to a device that sends no BPDUs stopped working. The port is not an edge port and the device is silent; make it an edge port if it really is an end device.
- A storm occurred although Loop Guard is on. The one-way link was on a designated port, which Loop Guard does not cover; that is UDLD's case.
- Configured together with Root Guard. Only one of them is active on a port.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
A blocked port stays blocked only while BPDUs arrive; without Loop Guard, silence opens it and creates a loop. It acts per VLAN and recovers when BPDUs return. It complements UDLD and cannot be combined with Root Guard on one port.
show spanning-tree summary— Loop Guard enabled by default?show spanning-tree inconsistentports— port, VLAN and "Loop Inconsistent".show spanning-tree interface <interface> detail— is the received-BPDU counter still rising?show interfaces <interface> transceiver detail— light levels on fibre.
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
Loop Guard protects against a failure spanning tree cannot otherwise see: a link that still carries traffic in one direction but no longer delivers BPDUs. A blocked port that stops hearing BPDUs is held in a blocked state instead of being opened.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
A blocked port stays blocked only because it keeps receiving BPDUs from the other side. If they stop — a fibre with one damaged strand, a neighbour too busy to send — spanning tree concludes the other switch is gone and opens the port. If the link still passes traffic the other way, that creates a loop. This is the classic cause of a broadcast storm in a network where spanning tree is running correctly.
ReferenceHow it works1 section · depth on demand
How it works
spanning-tree loopguard default
or per port:
interface TenGigabitEthernet1/1/1
spanning-tree guard loop
Loop Guard acts on ports that depend on receiving BPDUs: root ports and alternate ports, on point-to-point links between switches. The global command enables it on all such ports.
Without it, a root or alternate port that receives no BPDU for the maximum age becomes a designated port and moves to forwarding. With it, the port goes into the loop-inconsistent state and forwards nothing.
- Per VLAN. Each VLAN is tracked separately; the port is blocked for the VLANs whose BPDUs went missing.
- Automatic recovery. As soon as a BPDU arrives again, the port returns to its normal role. There is nothing to reset.
- Logged. A message when the port is blocked and another when it is released.
It differs from its neighbours as follows. Root Guard reacts to BPDUs that are too good and belongs on downlinks; Loop Guard reacts to BPDUs that are missing and belongs on uplinks. The two cannot be on the same port. UDLD detects one-way links at the physical level by exchanging its own messages and shuts the port down; it also catches miswired fibre pairs. Loop Guard additionally covers the case where the link is fine but the neighbour has stopped sending BPDUs. Using both on fibre links is common.
Loop Guard has no effect on PortFast edge ports, which do not expect BPDUs.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Loop guard prevents loops after a unidirectional link failure
If a root or alternate port stops receiving BPDUs, for example because one fibre of a pair failed, classic STP assumes the upstream switch is gone and turns the port designated and forwarding. If the link still works in the other direction, that creates a loop. The Catalyst 9300 guide describes loop guard as preventing alternate and root ports from becoming designated in that situation. It can be enabled globally with spanning-tree loopguard default or per interface, and can't be combined with root guard.
C9300(config)# spanning-tree loopguard default
C9300# show spanning-tree summary | include Loopguard
Loopguard Default is enabled
C9300# show spanning-tree inconsistentports
Name Interface Inconsistency
-------------------- ------------------------ ------------------
VLAN0020 TenGigabitEthernet1/1/2 Loop Inconsistent
C9300# show logging | include LOOPGUARD
%SPANTREE-2-LOOPGUARD_BLOCK: Loop guard blocking port TenGigabitEthernet1/1/2 on VLAN0020.
Loop guard and UDLD together
| Feature | Detects |
|---|---|
| Loop guard | Missing BPDUs on root or alternate ports, per VLAN |
| UDLD aggressive | Unidirectional links at Layer 1/2, per port, by echoing frames |
Use both on fibre links between switches: UDLD finds the broken link, and loop guard protects the STP state while it does.
Where to enable it
| Port | Loop guard |
|---|---|
| Point-to-point links between switches | Yes (the global default is common) |
| Edge ports (PortFast) | Not applied; BPDU guard is the right tool |
| Ports with root guard | Not allowed together |
Recovery
A loop-inconsistent port recovers by itself when BPDUs arrive again. If a port stays inconsistent, check the physical link in both directions (show interfaces transceiver detail, UDLD status) and the upstream switch's port state.
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → Loop Guard Deep Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.