Root Bridge Election
Cheat sheet · https://pcornel.dk/topic.php?topic=1028
Answer
Rapid PVST+ elects the lowest Bridge ID independently for each VLAN. The effective Bridge ID combines configurable bridge priority, the VLAN extended-system ID, and the switch MAC address. Cisco root primary/root secondary are convenience calculations rather than a new election mechanism; the actual winner is still determined from the Bridge ID carried in BPDUs.
Remember
Lowest bridge ID wins: priority (multiples of 4096, default 32768) plus the VLAN ID, then lowest MAC address. The election is per VLAN and has no hold-down — a new switch with a lower bridge ID becomes root at once. Set the priority on the core switches on purpose; never leave it to the MAC address.
First checks
show spanning-tree vlan 10 → Root ID vs Bridge ID; This bridge is the root on the intended switch. show spanning-tree root → root, cost and root port for every VLAN in one table. show running-config | include spanning-tree vlan → configured priorities.
Commands
show spanning-tree root- Summarizes root information per spanning-tree instance/VLAN.
show spanning-tree vlan <vlan> detail- Inspect root/bridge identity, port roles, topology-change counters and timers.
show spanning-tree vlan <vlan>show spanning-tree bridgeshow cdp neighbors <port>
Verify in this order
configured priority per VLAN → lowest bridge ID (priority + VLAN ID, then MAC) → same Root ID seen on every switch in the VLAN → root ports point toward it → traffic path follows the tree
Where it usually breaks
physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path
Root Bridge Election operational reference
| Boundary | Known-good for Root Bridge Election | Suspicious signature | Next proof |
|---|---|---|---|
| Intent | Matches per-VLAN root election design | Configuration differs from peer/design | Compare effective config |
| Control state | Stable expected role/route/member state | an unexpected Root ID, equal-priority tie resolved by MAC address, or a root change after adding/replacing a switch | Inspect protocol/RIB detail |
| Forwarding | Expected egress/Port-Channel/VLAN path | State exists but traffic path disagrees | FIB/MAC/adjacency |
| Closure | Original test passes for explained reason | Symptom merely moved or was bypassed | Regression test |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1028