Use it on ports facing access switches or other organisations' equipment, and when a port is shown as root-inconsistent.
Root Guard Deep Reference
Root Guard keeps the root bridge where it was designed to be. A port with Root Guard ignores a BPDU claiming a better root and stays blocked while such BPDUs keep arriving.
1. show spanning-tree inconsistentports — which port and VLANs?
2. Look at the switch behind that port: is its priority lower than the root's?
3. Raise it back to the default, or lower the real root's priority.
4. The port recovers by itself.
5. Blocked uplink → the guard is on the wrong port.
root and backup root have the lowest priorities → Root Guard on ports facing away from them → no better BPDU arrives → ports stay designated and forwarding
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show spanning-tree inconsistentportsVerification & 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 inconsistentports
show spanning-tree vlan 10
show spanning-tree interface GigabitEthernet1/0/24 detail
show logging | include ROOTGUARD
inconsistentports lists each blocked port with its VLAN and the reason "Root Inconsistent". In the per-VLAN output the port shows as BKN* with type *ROOT_Inc. The interface detail confirms that Root Guard is enabled on the port. The log shows when the port was blocked and released.
To find the cause, look at the switch behind the port: show spanning-tree vlan 10 there shows its bridge priority.
Known-good: no inconsistent ports, and the root is the intended switch.
Step 2 Failure isolation workflow Narrow the fault
- A downlink is root-inconsistent. The switch behind it has a lower bridge ID than the root. Raise its priority back to the default, or lower the root's.
- Only some VLANs are affected. The other switch has a low priority in just those VLANs.
- The port stays blocked after the port was bounced. The better BPDUs are still arriving; the cause is on the other switch.
- An uplink is blocked after the root failed over. Root Guard is on a port that faces the backup root.
- A new access switch has no connectivity. It was preconfigured with a low priority and Root Guard is doing its job.
- The root moved anyway. The better switch is attached through a port without Root Guard.
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.
It acts per VLAN and recovers by itself when the better BPDUs stop — bouncing the port does not help while they continue. Never put it on a port that faces the root or the backup root.
show spanning-tree inconsistentports— port, VLAN and "Root Inconsistent".show spanning-tree vlan <id>— the port shown asBKN*with type*ROOT_Inc.show spanning-tree vlan <id>on the switch behind the port — its bridge priority.
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
Root Guard keeps the root bridge where it was designed to be. A port with Root Guard will not accept a BPDU that claims a better root than the current one; while such BPDUs arrive, the port is blocked.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
Any switch with a lower priority — or just a lower MAC address — becomes root when it is connected, and the whole network's paths shift towards it. Root Guard on the ports facing access switches or other organisations' equipment prevents a misconfigured or newly added switch from doing that.
ReferenceHow it works1 section · depth on demand
How it works
interface GigabitEthernet1/0/24
spanning-tree guard root
Root Guard belongs on designated ports that point away from the root: the downlinks from core or distribution to access switches, and links to equipment managed by someone else.
Normally such a port receives BPDUs that are worse than the root's, and nothing happens. If a BPDU arrives that is better — a lower bridge ID than the current root — the port would ordinarily become the root port and the tree would be rebuilt around the new switch. With Root Guard, the port is put in the root-inconsistent state instead. It stops forwarding, and the rest of the network keeps its root.
Three properties to know:
- Per VLAN. Only the VLANs in which the better BPDU arrives are blocked on the port.
- Automatic recovery. When the better BPDUs stop, the port returns to normal by itself, passing through the usual states. No manual action is needed, and none helps while the BPDUs continue.
- Logged. One message when the port is blocked and one when it is released, each naming port and VLAN.
Root Guard must not be placed on a port that faces the root or could face it after a failure — an uplink, or the link between the primary and backup root. There it would block the path the network needs. It also cannot be combined with Loop Guard on the same port.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Root guard stops a port from becoming a root port
The Catalyst 9300 guide describes root guard: when a port with spanning-tree guard root would become the root port, it enters the root-inconsistent (blocked) state instead. The guide warns that misuse can cause loss of connectivity, and that root guard can't be combined with loop guard on the same port.
C9300-DIST1(config)# interface range Te1/0/1 - 24
C9300-DIST1(config-if-range)# description Downlinks to access switches
C9300-DIST1(config-if-range)# spanning-tree guard root
C9300-DIST1# show spanning-tree inconsistentports
Name Interface Inconsistency
-------------------- ------------------------ ------------------
VLAN0020 TenGigabitEthernet1/0/7 Root Inconsistent
C9300-DIST1# show logging | include ROOTGUARD
%SPANTREE-2-ROOTGUARD_BLOCK: Root guard blocking port TenGigabitEthernet1/0/7 on VLAN0020.
Where it belongs
| Port | Root guard |
|---|---|
| Distribution or core ports towards access switches | Yes |
| Ports towards a customer or another administrative domain | Yes |
| Uplinks towards the root | No: they must be able to be root ports |
| Ports between the two root candidates (core pair) | No |
What triggers it
| Cause | Fix |
|---|---|
| New switch with priority 0 or 4096 connected at the access layer | Correct its priority |
Access switch accidentally configured root primary | Remove it |
| Topology change that makes a downlink the best path to the root | Re-check the design and root placement |
Recovery is automatic
Unlike BPDU guard, root guard doesn't err-disable the port. The port stays root-inconsistent while superior BPDUs keep arriving and returns to normal once they stop. Check show spanning-tree inconsistentports regularly; a port listed there is a hidden outage for the VLANs it blocks.
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 → Root 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.
Root Guard — Fast Check
Superior-BPDU protection
1. show spanning-tree inconsistentports.
2. Identify VLAN/instance.
3. Confirm root-inconsistent.
4. Identify superior BPDU/root ID.
5. Correct downstream priority/topology.
6. Verify automatic recovery.