Root Bridge
Cheat sheet · https://pcornel.dk/topic.php?topic=1018
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 rootshow 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 signal | Known-good | Suspicious | Next check |
|---|---|---|---|
| Root ID | Matches intended root for instance | Unexpected access/edge switch | Priority + BPDU reachability |
| Local Bridge ID | Equals Root ID on root | Root claim inconsistent | Instance/VLAN context |
| Root path cost | Matches intended topology | Higher/unexpected path | Link cost + root port |
| Root changes | Stable except planned events | Frequent transitions | Link/BPDU/topology-change timeline |
| Root Guard state | No superior BPDU on protected edge | Inconsistent/blocking | Identify 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