Pcornel
Networking · Switching › STP › Spanning Tree Fundamentals

Root Bridge

Cheat sheet · https://pcornel.dk/topic.php?topic=1018

Back to the Topic

Answer

The root bridge is the switch with the lowest bridge ID (priority, then MAC address). All its ports are designated and forwarding, and every other switch computes its best path towards it.

Remember

Set the root with spanning-tree vlan <id> priority <value> (multiples of 4096) or spanning-tree vlan <id> root primary|secondary. Put the root in the distribution or core, ideally on the same switch as the VLAN's active default gateway. Root guard on downstream ports keeps another switch from taking over.

First checks

  • show spanning-tree vlan <id> — root ID, local bridge ID, and each port's role, state and cost.
  • show spanning-tree root — the root bridge, root cost and root port per VLAN.
  • show spanning-tree vlan <id> detail — BPDUs sent and received, topology changes and their source.
  • show spanning-tree summary — mode, enabled features and port counts per state.
  • show spanning-tree inconsistentports — ports blocked by root guard, loop guard or type inconsistency.

Commands

spanning-tree vlan <vlan-list> root primary
Adjusts priority using IOS logic to make the switch likely to become root for selected VLANs.
show spanning-tree root
show spanning-tree vlan <vlan>
show spanning-tree

Verify in this order

each switch announces its bridge ID → lowest priority + MAC wins → root sends BPDUs → all switches agree on the root ID → root ports point towards it

Where it usually breaks

physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path

Root Bridge operational reference

Root-election signalKnown-goodSuspiciousNext check
Root IDMatches intended root for instanceUnexpected access/edge switchPriority + BPDU reachability
Local Bridge IDEquals Root ID on rootRoot claim inconsistentInstance/VLAN context
Root path costMatches intended topologyHigher/unexpected pathLink cost + root port
Root changesStable except planned eventsFrequent transitionsLink/BPDU/topology-change timeline
Root Guard stateNo superior BPDU on protected edgeInconsistent/blockingIdentify superior BPDU source

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1018

Confirmation

Confirm action

Continue?