Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Bridge ID

Direct answer

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.

When to use this

Use BID comparison when determining which switch should become root or why a different switch won the election.

First 30 seconds

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.

Operational verification

priority + VLAN + MAC → bridge ID → compared → root

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 commandshow spanning-tree vlan 10 bridge
Scope / prerequisiteUse BID comparison when determining which switch should become root or why a different switch won the election.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

2 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 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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

Lower BID is better. Administrators normally influence it by changing bridge priority rather than relying on MAC address tie-breaking.

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

FieldSizeDefault
Bridge priority4 bits (multiples of 4096)32768
System ID extension12 bitsThe VLAN or MST instance number
MAC address6 bytesSwitch 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 priorityVLANPriority in BID
32768 (default)1032778
4096104106
24576124577
0200200

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

DecisionCompared values
Root bridgeLowest bridge ID (priority, then MAC)
Root portLowest root path cost → lowest sender bridge ID → lowest sender port ID
Designated portSame order, per segment

Practical checks

  • show spanning-tree root lists 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.

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

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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 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%
Confirmation

Confirm action

Continue?