Use it when a VLAN elects the wrong root, a configured priority appears numerically different in show output, or deterministic primary/secondary root placement is being designed.
Bridge Priority
Lower Bridge ID wins the root election. Bridge priority is the operator-controlled part, commonly configured in increments compatible with the extended system ID.
1. Priority in steps of 4096 (0–61440).
2. spanning-tree vlan <v> root primary/secondary or explicit priority.
3. Set primary and secondary root.
4. Align with HSRP active for optimal paths.
5. Default leads to random roots.
priority configured → lowest bridge ID → root bridge
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
spanning-tree vlan <vlan-list> priority <value>Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification and known-good state Verify boundary
For the affected VLAN, read the local Bridge ID and Root ID and confirm the current root’s full ID is actually lowest among candidates. On the intended root and at least one neighbor, compare the same VLAN/instance so system-ID extension values are not mistaken for config drift. Verify the root port on downstream switches points toward the elected root and that designated/alternate roles are consistent with the resulting topology. If using primary/secondary macros, inspect the resulting priority rather than assuming the command text guarantees an eternal role after topology changes.
Step 2 Verification & troubleshooting Narrow the fault
Use show spanning-tree vlan <vlan> and verify the Root ID priority and local Bridge ID priority after the change.
Step 3 Failure signatures and troubleshooting branches Narrow the fault
A frequent mistake is comparing only the configured base priority while show output displays priority plus the extended system ID. Another is changing a global-looking value but checking the wrong VLAN or MST instance. If the intended root has a lower Bridge ID yet another switch remains root, investigate BPDU reachability, VLAN pruning or STP mode/region boundaries before repeatedly lowering priority. If root placement is correct but the forwarding path is still undesirable, move to path cost and port-role analysis; bridge priority only chooses the root reference point.
Step 4 When the problem is really fixed Narrow the fault
After a controlled priority change and convergence, verify Root ID from multiple switches in the same VLAN, confirm downstream root ports and designated ports align with the intended topology, and test Layer-2 traffic over the new active path. Check an adjacent VLAN because per-VLAN tuning can intentionally or accidentally split roots. Record actual show spanning-tree output separately when collected; the Topic explains expected election math but does not assert that a particular switch is currently root.
Step 5 Common mistakes Narrow the fault
- Priority not a multiple of 4096.
- Same priority on two core switches with no planned tie-break.
Root election compares the full Bridge ID, not priority alone. Equal configured priority falls through to the MAC portion, and PVST+/Rapid-PVST+ root state can differ by VLAN.
show spanning-tree vlan <vlan>— Bridge ID Priorityshow running-config | include spanning-tree vlan— priority config
ReferenceWhat it is1 section · depth on demand
What it is
Bridge priority is the administrator-controlled portion of the BID used to influence root election.
ReferenceWhy it matters1 section · depth on demand
Why it matters
Use it to make intended root and secondary-root switches win elections deterministically.
ReferenceImportant terms & boundaries4 sections · depth on demand
Key points
Lower priority is better. Cisco per-VLAN spanning-tree priorities are configured in discrete increments because part of the priority field carries the extended system ID.
In depth
Bridge priority: the configurable part of the bridge ID
The Catalyst 9300 STP guide describes the 8-byte bridge ID per VLAN: the priority occupies the most significant bits, set in increments of 4096 with a default of 32768, followed by the extended system ID (equal to the VLAN ID) and the MAC address.
Bridge ID = priority (multiple of 4096) + VLAN ID (extended system ID) + MAC address
Example: 24576 + 20 = 24596, then a0f8.4912.3400
C9300-CORE1(config)# spanning-tree vlan 1-4094 priority 24576
C9300-CORE2(config)# spanning-tree vlan 1-4094 priority 28672
C9300-CORE1# show spanning-tree vlan 20 bridge
Hello Max Fwd
Vlan Bridge ID Time Age Dly Protocol
---------------- --------------------------------- ----- --- --- --------
VLAN0020 24596 (24576, 20) a0f8.4912.3400 2 20 15 rstp
C9300(config)# spanning-tree vlan 20 priority 25000
% Bridge Priority must be in increments of 4096.
Allowed values
| Values | Note |
|---|---|
| 0, 4096, 8192 … 61440 | 16 possible values |
| 32768 | Default |
| 24576 | Typical primary root |
| 28672 | Typical secondary root (the value root secondary sets) |
root primary versus a fixed priority
spanning-tree vlan X root primary calculates a priority lower than the current root's at the time you enter it. If a switch with an even lower priority appears later, it can still win. A fixed priority (for example 4096 on the core) is predictable and easy to audit.
Audit
C9300# show spanning-tree root
Vlan Root ID Cost Time Age Dly Root Port
---------------- -------------------- --------- ----- --- --- ------------
VLAN0010 24586 a0f8.4912.3400 2 2 20 15 Te1/1/1
Every VLAN should show the intended core switch as root. A root with priority 32768 plus the VLAN ID means nobody configured one.
Documented example, not captured output.
Quick reference
Bridge priority is the configurable part of the bridge ID (0–61440 in steps of 4096; default 32768). With the extended system ID, the VLAN number is added to it, so a switch shows priority 32778 for VLAN 10. The lowest bridge ID becomes root.
spanning-tree vlan 10 priority 4096
spanning-tree vlan 20 priority 8192
show spanning-tree vlan 10 bridge
Documented example, not captured output.
Setting different priorities per VLAN on two distribution switches spreads VLANs' root roles and uses both uplinks.
Mechanics and state ownership
Classic STP root election selects the lowest Bridge ID. In modern Cisco per-VLAN implementations, the Bridge ID includes a priority field that incorporates the extended system ID (for example the VLAN number) plus the switch MAC address. Operators influence election by choosing a lower configured base priority; if candidates remain equal at that stage, the MAC component breaks the tie. Because the calculation is per VLAN or spanning-tree instance, a switch can be root for one VLAN and non-root for another. The root primary convenience configuration derives a priority rather than changing STP’s comparison rules. This section is authored reference guidance for Bridge Priority in the STP Fundamentals context.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Switching → STP → Spanning Tree Fundamentals → Bridge Priority. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Quick lookup tables
Bridge Priority operational reference
Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.
| Check | Known-good | Failure signature | Next boundary |
|---|---|---|---|
| VLAN/instance | Correct context | Wrong tree inspected | Scope |
| Bridge ID | Intended root lowest | Unexpected lower competitor | Election |
| Root ID | Matches intended switch | Different switch | BPDU/election |
| Root ports | Point toward root | Inconsistent direction | Path selection |
| Adjacent VLAN | Expected root plan | Unplanned split/shift | Per-VLAN design |
Deep reference
Healthy vs suspicious evidence
Field-by-field state interpretation
In show spanning-tree vlan <id>, the Root ID priority shows the root bridge's priority and the *Bridge ID* priority shows this switch's own value. With the extended system ID, the displayed priority is the configured priority plus the VLAN number (e.g. 32768 + 10 = 32778); configured values must be multiples of 4096.