Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Root Guard

Direct answer

Root Guard stops a port from becoming a root port. If a superior BPDU arrives — for example from a downstream switch trying to become root — the port goes into root-inconsistent (blocking) state until the superior BPDUs stop.

When to use this

Use it on ports facing switches that must never become root or lead to it — access-layer downlinks, links to another team's or a customer's switches — and when a port shows ROOT_Inc.

First 30 seconds

1. spanning-tree guard root blocks the port (root-inconsistent) if it receives a superior BPDU.

2. Use on ports toward switches that must never become root.

3. show spanning-tree inconsistentports.

Operational verification

Root Guard on a downstream-facing designated port → superior BPDU arrives → port root-inconsistent for that VLAN, root stays where it is → downstream priority corrected → superior BPDUs stop → port recovers automatically

Evidence · next step

Find the device advertising the superior root information and correct downstream priority/topology.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE
Key commandspanning-tree guard root
Scope / prerequisiteUse it on ports facing switches that must never become root or lead to it — access-layer downlinks, links to another te…
Show · 1Reference · 1
What next?3 suggested next steps
Catalog command links2
Evidence1
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

7 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 First 30 seconds Verify boundary

Immediate answer: Verify the protected port received superior BPDUs and entered root-inconsistent before changing bridge priority or guard placement.

Verification chain: expected root boundary → received BPDU superiority → Root Guard decision → root-inconsistent state → topology after recovery → forwarding

Stop condition: Root-inconsistent shows a superior-BPDU protection event on that port, not that the neighboring device is faulty or malicious.

Step 2 Operational verification and known-good state Verify boundary
show spanning-tree inconsistentports
show spanning-tree vlan 10
show spanning-tree interface Gi1/0/3 detail

The first lists ports held by a consistency check, with the reason. In the VLAN view such a port shows BKN* and *ROOT_Inc in the Type column. The interface detail prints Root guard is enabled on protected ports — useful for an audit when nothing is wrong.

Known-good: Root Guard is on downstream-facing ports, show spanning-tree inconsistentports is empty, and show spanning-tree root shows the designed root for every VLAN.

Step 3 Verification and output interpretation Verify boundary

Use show spanning-tree inconsistentports and VLAN/instance-specific spanning-tree output to identify root-inconsistent state and the superior BPDU condition. Compare expected root ID, received root information and topology role. The inconsistent state shows root-protection policy is active, but it does not show the physical link is defective or that the sender is malicious.

Step 4 Step-by-step troubleshooting Narrow the fault

Boundary rule: Root-inconsistent shows a superior-BPDU protection event on that port, not that the neighboring device is faulty or malicious.

Step 5 Verification & troubleshooting Narrow the fault

1. show spanning-tree inconsistentports → VLAN, port and Root Inconsistent.

2. On the switch behind that port: show spanning-tree bridge → its priority for the affected VLANs.

3. Decide which side is wrong. Usually the downstream priority is too low — raise it or remove the setting. Occasionally the guard is misplaced on a port that should be able to become a root port — then remove the guard.

4. The port recovers on its own; confirm with step 1.

Step 6 Failure signatures and troubleshooting branches Narrow the fault
  • ROOT_Inc right after a switch was added. The new switch has a lower priority than the root.
  • ROOT_Inc on the link between two distribution switches after the root failed. The guard is misplaced: the backup root's BPDUs are legitimately superior from that direction.
  • An access switch is cut off for some VLANs only. A low priority was configured downstream for just those VLANs.
  • The state clears and returns repeatedly. The downstream switch or its uplink is flapping.
  • Someone removed the guard to restore traffic. Check show spanning-tree root — the root has probably moved.
Step 7 When the problem is really fixed Narrow the fault
  • The downstream switch has a priority higher than the root's for every VLAN.
  • The port left root-inconsistent by itself and is forwarding.
  • show spanning-tree root names the designed root for all VLANs.
  • Root Guard is still configured on the port.
Evidence references

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.

command output · 1
Command lookup Jump straight to Cisco syntax
Key points

Root Guard lets BPDUs in but refuses superior ones: the port goes root-inconsistent (blocked) for the affected VLANs and recovers by itself when the superior BPDUs stop. Configure it on designated ports pointing away from the root, never on your own uplinks. Root Guard and Loop Guard cannot both be active on one port.

Key checks

show spanning-tree inconsistentports → Root Inconsistent per VLAN and port. show spanning-tree vlan 10 → BKN* with *ROOT_Inc. show spanning-tree interface <if> detail → Root guard is enabled. Then find the downstream switch with the too-low priority.

ReferenceWhat it is1 section · depth on demand

What it is

Root Guard is set on a port to state that the root bridge must never be found in that direction. If a BPDU arrives there that is better than the current root's, the port is blocked — root-inconsistent — for as long as such BPDUs keep coming.

ReferenceWhy it matters1 section · depth on demand

Why it matters

Choosing the root by priority only works while nobody configures a lower priority somewhere else. A switch added downstream with a lower value — a lab switch, a misconfiguration, another department's or a customer's equipment — would take over as root and redraw every path in the VLAN. Root Guard enforces the placement at the boundary, and the damage is limited to the one port where the claim arrives.

ReferenceImportant terms & boundaries6 sections · depth on demand

Key points

  • Interface only: spanning-tree guard root. There is no global form.
  • Goes on designated ports that face downstream: distribution toward access, or toward networks you do not control.
  • Not on ports that may legitimately become root ports — uplinks, or the link between the primary and backup root.
  • Acts per VLAN (or MST instance): state BKN*, type *ROOT_Inc.
  • Recovers by itself when the superior BPDUs stop.
  • Cannot be combined with Loop Guard on the same port.
  • Unlike BPDU Guard it lets ordinary BPDUs through and does not err-disable the port.

In depth

Root guard: keep the root bridge where you put it

The Catalyst 9300 optional STP features guide describes root guard (spanning-tree guard root, disabled by default) as blocking a port that would otherwise become a root port. The port is put in the root-inconsistent (blocked) state, so the switch can't become root or sit on the path to a new root through that port.

C9300-DIST(config)# interface range GigabitEthernet1/0/1 - 46
C9300-DIST(config-if-range)# spanning-tree guard root
%SPANTREE-2-ROOTGUARD_BLOCK: Root guard blocking port GigabitEthernet1/0/12 on VLAN0010.
C9300-DIST# show spanning-tree inconsistentports
Name                 Interface              Inconsistency
-------------------- ---------------------- ------------------
VLAN0010             GigabitEthernet1/0/12  Root Inconsistent
Number of inconsistent ports (segments) in the system : 1

Documented behaviour

PointDetail
ScopeAll VLANs on the interface
MSTForces the port to be designated; a boundary port blocked by root guard is blocked in all instances
CombinationCan't be enabled together with loop guard
UplinkFastDon't enable root guard on UplinkFast backup interfaces

Recovery

The guide doesn't describe a manual recovery step. In practice the port leaves the root-inconsistent state by itself when it stops receiving superior BPDUs, for example when the device sending them is reconfigured or removed.

Where to use it

PortReason
Distribution ports towards access switchesAn access switch must never become root
Ports towards customers or third-party networksTheir BPDUs must not move your root
Not on uplinks towards the rootThose ports are supposed to be root ports

Root guard is a design statement: it says the root can never be on this side. Combine it with explicit root priorities (root primary and root secondary) on the intended root switches.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

Root Guard keeps a port from becoming a root port: if a superior BPDU arrives, the port goes into root-inconsistent (blocking) state until the superior BPDUs stop. It protects the planned root placement.

interface Gi1/0/24
 spanning-tree guard root
show spanning-tree inconsistentports

Documented example, not captured output.

Apply it on distribution ports facing access switches, and on ports to other organisations, so no downstream switch can take over as root.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Mechanics and state ownership

A superior BPDU is one that would make the receiving port the switch's root port — in practice, one that names a better root. On a normal port that is exactly how a root change spreads. On a Root Guard port the switch refuses: the port goes root-inconsistent for that VLAN, passes no traffic for it, and the existing root stays.

The downstream switch, which believes it is the root, is thereby cut off on that link for the affected VLANs. That is intended: isolating the device with the wrong priority is better than letting it redirect everyone's traffic.

Nothing has to be cleared by hand. As soon as superior BPDUs stop arriving the port returns through the normal states to forwarding. Because Rapid PVST+ sends BPDUs per VLAN, a trunk can be inconsistent for the VLANs where the downstream priority is too low and normal for the rest.

State model and protocol mechanics

Root Guard enforces root-bridge placement by preventing a port from becoming a path toward a superior root. When superior BPDUs arrive on a protected port, the affected spanning-tree instance is placed into root-inconsistent state rather than allowing the remote device to influence the root election through that boundary.

Limits and common misconceptions

Root Guard protects root direction, not all loop conditions. It should not be placed blindly on ports that may legitimately become root ports during a failure design. Removing Root Guard can restore forwarding while silently allowing the wrong root to win. Keep root election, path redundancy, VLAN/instance scope and physical link health as separate concerns.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Place Root Guard on ports where the local design expects the root to remain upstream and the connected downstream switch must never become root through that link. Apply it with awareness of per-VLAN or per-instance topology: a trunk can be consistent for one instance and inconsistent for another. Root priorities should still be designed deliberately rather than relying on Root Guard as the primary election mechanism.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Configuration example

Cisco IOS / IOS XE IEEE 802.1D-2004 / 802.1QProtect root placement on a distribution downlink

Assumptions: Lab switch; Rapid PVST+ (spanning-tree mode rapid-pvst); VLAN 10 exists.

interface GigabitEthernet1/0/3
 description downlink to access switch
 spanning-tree guard root

Expected output

Cisco IOS / IOS XE IEEE 802.1D-2004 / 802.1Qshow spanning-tree inconsistentports

Expected state: Failure signature while a downstream switch claims to be root.

%SPANTREE-2-ROOTGUARD_BLOCK: Root guard blocking port GigabitEthernet1/0/3 on VLAN0010.

Name                 Interface              Inconsistency
-------------------- ---------------------- ------------------
VLAN0010             GigabitEthernet1/0/3   Root Inconsistent

Number of inconsistent ports (segments) in the system : 1
! Illustrative output, not captured Evidence.
The switch behind Gi1/0/3 advertises a better bridge ID for VLAN 10. The port is blocked for that VLAN only and unblocks by itself once the downstream priority is fixed.
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Switching → STP → STP Enhancements → Root Guard. 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%
Embedded reference data

Quick lookup tables

Root Guard · operational reference

Compact state and interpretation boundaries for fast lookup.

State / evidenceInterpretation
Superior BPDUUnexpected root claim
Root-inconsistentProtection state
Physical linkMay remain healthy
Corrective actionFix root design/source

Root Guard operational reference

Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.

BoundaryKnown-good for Root GuardSuspicious signatureNext proof
IntentMatches root-placement protection that prevents a downstream port from becoming the path toward a superior root bridge designConfiguration differs from design/peerCompare effective configuration
Control stateStable expected region/role/topology/path stateRoot Guard applied on a port that legitimately may become a root port, a downstream switch advertising superior priority and driving root-inconsistent state, or operators clearing symptoms without fixing the unexpected root-election inputInspect protocol detail and adjacent state
ForwardingExpected VLAN/egress/RIB/FIB pathControl state exists but traffic path disagreesMAC/FIB/CEF/adjacency proof
ClosureOriginal test passes for explained reasonSymptom moved, was bypassed or protection disabledRegression test
Confirmation

Confirm action

Continue?