Use BID comparison when determining which switch should become root or why a different switch won the election.
Bridge ID
The Bridge ID (BID) identifies a spanning-tree bridge and participates in root election. It combines bridge priority information with a MAC-derived identifier; per-VLAN implementations also encode the VLAN/system-ID extension.
1. Bridge ID = priority (+ VLAN ID extended system ID) + MAC.
2. Lowest wins root.
3. Default priority 32768 + VLAN.
4. Older switches with low MACs win by default.
5. Set priority explicitly.
priority + VLAN + MAC → bridge ID → compared → root
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show spanning-tree vlan 10 bridgeVerification & 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 Checking the bridge ID Verify boundary
show spanning-tree vlan 10 bridge
show spanning-tree root
spanning-tree vlan 10 priority 4096
Documented example, not captured output. Priorities must be multiples of 4096 (0–61440). The root primary macro sets 24576 or 4096 less than the current root.
Step 2 Common mistakes Narrow the fault
- Forgetting the extended system ID (VLAN) is part of the priority.
- Duplicate MAC addresses on virtual switches.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Lower BID is better. Administrators normally influence it by changing bridge priority rather than relying on MAC address tie-breaking.
show spanning-tree vlan <vlan>— Root ID and Bridge IDshow spanning-tree bridge— local bridge ID
ReferenceWhat it is1 section · depth on demand
What it is
The Bridge ID (BID) identifies a spanning-tree bridge and participates in root election. It combines bridge priority information with a MAC-derived identifier; per-VLAN implementations also encode the VLAN/system-ID extension.
ReferenceWhy it matters1 section · depth on demand
Structure of the Bridge ID
The Bridge ID is 8 bytes:
| Field | Size | Default |
|---|---|---|
| Bridge priority | 4 bits (multiples of 4096) | 32768 |
| System ID extension | 12 bits | The VLAN or MST instance number |
| MAC address | 6 bytes | Switch base MAC |
So VLAN 10 with default priority shows 32778. The lowest Bridge ID wins the root election; with equal priorities the lowest MAC wins, which is usually the oldest switch. Set priority explicitly with spanning-tree vlan 10 priority 4096 so the root is predictable.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Worked calculation
With the extended system ID, the 16-bit priority field holds 4 bits of configurable priority and 12 bits of VLAN ID:
| Configured priority | VLAN | Priority in BID |
|---|---|---|
| 32768 (default) | 10 | 32778 |
| 4096 | 10 | 4106 |
| 24576 | 1 | 24577 |
| 0 | 200 | 200 |
Only multiples of 4096 (0–61440) are accepted.
Switch# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 4106
Address 00a3.d1c0.ff00
This bridge is the root
Bridge ID Priority 4106 (priority 4096 sys-id-ext 10)
Address 00a3.d1c0.ff00
root primary and root secondary
spanning-tree vlan 10 root primary is a macro, not a setting: it sets priority 24576 if that makes the switch root, otherwise a value 4096 below the current root. It is evaluated once; a new switch with a lower priority added later still wins. Explicit values (spanning-tree vlan 10 priority 4096 on the primary, 8192 on the secondary) are easier to reason about.
Tie-breakers in order
| Decision | Compared values |
|---|---|
| Root bridge | Lowest bridge ID (priority, then MAC) |
| Root port | Lowest root path cost → lowest sender bridge ID → lowest sender port ID |
| Designated port | Same order, per segment |
Practical checks
show spanning-tree rootlists the root ID, cost and root port for every VLAN — a quick way to spot a VLAN with an unexpected root.- In MST the instance number takes the place of the VLAN ID in the extended system ID.
- Duplicate base MAC addresses (cloned virtual switches) produce identical bridge IDs and unpredictable elections.
Documented example, not captured output.
Worked example
Spanning tree elects one switch as the root bridge, and every other switch calculates its best path toward it. The election is decided by the Bridge ID: the lowest value wins. Because the default priority is the same on every switch, the root ends up being whichever has the lowest MAC address — often the oldest switch — unless priorities are set deliberately.
The Bridge ID decides the root bridge: 16-bit priority (4-bit configurable in steps of 4096, plus 12-bit extended system ID = VLAN number) followed by the MAC address. Lowest wins.
Worked example: priority 24576 in VLAN 20 → Bridge ID priority 24596 (24576 + 20). Another switch with default 32768 + 20 = 32788 loses regardless of MAC.
spanning-tree vlan 20 priority 24576
spanning-tree vlan 20 root primary ! macro: sets 24576 or lower
show spanning-tree vlan 20 bridge
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 ID. 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%