Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Bridge Priority

Direct answer

Lower Bridge ID wins the root election. Bridge priority is the operator-controlled part, commonly configured in increments compatible with the extended system ID.

When to use this

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.

First 30 seconds

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.

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE
Key commandspanning-tree vlan <vlan-list> priority <value>
Scope / prerequisiteUse it when a VLAN elects the wrong root, a configured priority appears numerically different in show output, or determ…
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.
Command lookup Jump straight to Cisco syntax
Key points

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.

Key checks
  • show spanning-tree vlan <vlan> — Bridge ID Priority
  • show 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

ValuesNote
0, 4096, 8192 … 6144016 possible values
32768Default
24576Typical primary root
28672Typical 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Embedded reference data

Quick lookup tables

Bridge Priority operational reference

Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.

CheckKnown-goodFailure signatureNext boundary
VLAN/instanceCorrect contextWrong tree inspectedScope
Bridge IDIntended root lowestUnexpected lower competitorElection
Root IDMatches intended switchDifferent switchBPDU/election
Root portsPoint toward rootInconsistent directionPath selection
Adjacent VLANExpected root planUnplanned split/shiftPer-VLAN design
Depth when you need it

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.

Confirmation

Confirm action

Continue?