Labs · · 5 min read

Lab na-10 - Root Guard

Lab na-10 - Root Guard - PingLabz Labs article title card

Root Guard is the third spanning-tree hardening feature, after PortFast and BPDU Guard. It protects an interface from EVER becoming a root port. If a switch on the other side of a Root-Guard-enabled port claims to be a better root (sends a superior BPDU), the port is moved to "root-inconsistent" state - blocking - until the superior BPDU stops. This lab configures Root Guard on SW1's uplinks and explains when to use it.

What you will learn

  • What Root Guard does and how it differs from BPDU Guard
  • When Root Guard triggers (root-inconsistent state)
  • The canonical placement: uplinks from access switches towards the distribution layer
  • How to configure on a single port and read its state
  • How Root Guard recovers (automatically, unlike BPDU Guard)

What this lab does NOT cover

  • Loop Guard (a defense against unidirectional link failures - different problem)
  • BPDU Filter (silently drops BPDUs without err-disabling - rarely used)

Topology

Download the STP+VLAN Reference Lab .yaml

Three IOSvL2 switches in a triangle with VLANs 10/20/99, dot1q trunks, rapid-PVST root election (SW1 root, SW2 backup), and an LACP EtherChannel between SW1 and SW2.

Download STP+VLAN Reference Lab

Read next

Terminal card showing a repeating CDP native VLAN mismatch log naming Ethernet0/0 native VLAN 1 against SW2 Ethernet0/0 native VLAN 99
VLANs ·

Native VLAN Mismatch: Read the CDP Log, Fix the Trunk

%CDP-4-NATIVE_VLAN_MISMATCH hands you both interfaces and both native VLANs in one line. The real damage is underneath it: untagged frames get re-homed at the trunk boundary and two VLANs quietly become one. Captured live on IOS XE 17.18.2 in CML.