Troubleshooting notes · Switching
Uplink stuck in "Root Inconsistent": root guard on the wrong side
An access switch's uplink to the core is blocked as root-inconsistent. Why root guard belongs on the core's downlinks, not on the access switch's uplink. Real output from Cisco IOS XE 17.18.
The symptom
An access switch loses its path to the core. Its uplink isn't down: spanning tree blocks it as Root Inconsistent:
SW2# show spanning-tree inconsistentports
Name Interface Inconsistency
-------------------- ------------------------------ ------------------
VLAN0001 Ethernet0/0 Root Inconsistent
Number of inconsistent ports (segments) in the system : 1
SW2# show running-config interface Ethernet0/0
Building configuration...
Current configuration : 113 bytes
!
interface Ethernet0/0
description Uplink to SW1 (core)
switchport mode access
spanning-tree guard root
end
Why it happens
Root guard stops a port from becoming a path to the root bridge: if a superior BPDU (a better root) arrives on it, the port goes root-inconsistent and blocks. It belongs on ports where the root must never appear, which are the core's downlinks towards access switches. Here it was put on the access switch's uplink, which is exactly where the real root should appear. So root guard blocks the switch's only path to the core.
In the lab the fault stayed hidden at first: while a rogue switch was root, the core's BPDUs weren't the best ones the access switch knew. It showed up as soon as the core became root again.
The fix
Remove root guard from the uplink and put it on the core's downlink instead:
SW2(config)# interface Ethernet0/0
SW2(config-if)# no spanning-tree guard root
SW1(config)# interface Ethernet0/0
SW1(config-if)# spanning-tree guard root
Check it
show spanning-tree inconsistentports should list no ports, and the uplink should be the Root port in FWD state in show spanning-tree vlan <vlan>. Root guard on the core side then blocks only if an access switch ever claims to be a better root.
Practise this fault
This fault is in CCNA Lab 13 of CCNA Troubleshooting Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.
Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:
We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.