Pcornel
Networking · Switching › STP › RSTP — 802.1w › Rapid PVST+

Root Bridge Election

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

Back to the Topic

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 bridge
show 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

BoundaryKnown-good for Root Bridge ElectionSuspicious signatureNext proof
IntentMatches per-VLAN root election designConfiguration differs from peer/designCompare effective config
Control stateStable expected role/route/member statean unexpected Root ID, equal-priority tie resolved by MAC address, or a root change after adding/replacing a switchInspect protocol/RIB detail
ForwardingExpected egress/Port-Channel/VLAN pathState exists but traffic path disagreesFIB/MAC/adjacency
ClosureOriginal test passes for explained reasonSymptom merely moved or was bypassedRegression test

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

Confirmation

Confirm action

Continue?