Spanning treeIntermediate20 min read

What Does Bridge priority Mean?

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security
On This Page

Quick Definition

Bridge priority is a number assigned to each switch that helps decide which switch will be the boss in a network. The switch with the lowest bridge priority becomes the root bridge, meaning it is the central point for preventing network loops. Lower numbers are more important, and the default value is usually 32768. Network engineers can change this number to control which switch becomes the root.

Commonly Confused With

Bridge priorityvsRoot bridge

Root bridge is the switch that wins the election based on the lowest Bridge ID, where bridge priority is a key component. Bridge priority is the number you configure, while root bridge is the outcome. You configure bridge priority to make a switch become the root bridge.

If you set a switch's bridge priority to 4096, that switch becomes the root bridge (assuming no lower priority exists).

Bridge priorityvsPort priority

Port priority is used in STP to determine which port to block when two ports have the same path cost. It is a value assigned to a port, not to the whole switch. Bridge priority is about the switch itself; port priority is about a specific interface.

Bridge priority decides which switch is root; port priority decides which port on a switch goes to blocking mode if two ports have equal cost to the root.

Bridge priorityvsBridge ID

Bridge ID is the combination of bridge priority and the switch's MAC address. Bridge priority is one part of the Bridge ID. So bridge priority alone does not uniquely identify a switch; the full Bridge ID does.

Two switches could have the same priority, but their Bridge IDs differ because of their unique MAC addresses.

Must Know for Exams

Bridge priority is a core concept tested in the CCNA exam, specifically under the Spanning Tree Protocol topic. In the CCNA exam objectives, you are expected to understand the STP root bridge election process, including the role of bridge priority. The exam will ask you to determine which switch becomes the root bridge given a set of priorities and MAC addresses.

You may be presented with a scenario where switches have default priorities and you must predict the root using the lowest MAC. Or you might be given custom priorities and asked to identify the root. The exam also tests your ability to configure bridge priority using the 'spanning-tree vlan vlan-id priority' command.

You might see simulation or multiple-choice questions that require you to verify the root bridge and its priority using 'show spanning-tree'. Understanding the increment of 4096 is crucial because if you enter a value like 100, it will be rounded down to 0 (or the nearest multiple). The exam may test this behavior.

The CCNA covers PVST+ and the ability to have different roots per VLAN. You could be asked to design a scenario where you set one root for VLAN 10 and another for VLAN 20 to load balance. Trap questions often involve a switch with a low priority but a high MAC address versus a switch with a higher priority but a lower MAC.

Since priority comes first, the lowest priority always wins regardless of MAC. Also, remember that changing the bridge priority does not require reloading the switch; it takes effect immediately. The exam may test this operational knowledge.

In the troubleshooting section, you might be asked to identify why a certain switch became the root and how to change it. So bridge priority is not just a fact but a practical tool. Expect questions on how to influence the root bridge election, how to verify it, and what happens when a root fails.

The CCNA exam also touches on Rapid PVST+ and MST, but the core bridge priority concept remains the same. Mastery of bridge priority will help you answer multiple-choice, drag-and-drop, and simulation questions confidently.

Simple Meaning

Imagine you are in a large office with many coworkers, and everyone needs to send memos to each other. If everyone just sends memos to everyone else, things will get messy, memos will cross, and some people will get the same memo twice. To avoid this chaos, you need one person to be the central coordinator.

That coordinator decides the best path for each memo so no memo gets stuck in a loop and nobody gets duplicates. In a computer network, switches are like coworkers, and they use Spanning Tree Protocol to pick a central coordinator called the root bridge. The bridge priority is like the number you give each coworker to decide who becomes the coordinator.

The coworker with the lowest number wins and becomes the boss. By default, all switches start with the same number, like 32768. If you want a specific switch to be the boss because it is faster or more reliable, you can lower its number so it wins the election.

If you want to make sure a slow switch never becomes the boss, you can raise its number. This is important because loops in a network can cause data to go in circles forever, slowing everything down or crashing the network. Changing the bridge priority lets you control which switch takes charge, keeping the network stable and efficient.

Think of it like picking a team captain by giving everyone a number, and the person with the smallest number gets the armband.

Full Technical Definition

Bridge priority is a 16-bit value that forms the most significant part of the Bridge ID in the Spanning Tree Protocol (STP) as defined by IEEE 802.1D. The Bridge ID is an 8-byte field used in Bridge Protocol Data Units (BPDUs) exchanged between switches.

The bridge priority occupies the first 2 bytes of the Bridge ID, followed by a 6-byte MAC address. The combined value (priority plus MAC) makes a unique identifier for each switch. The bridge priority is the primary determinant in the root bridge election process.

Switches send BPDUs containing their Bridge ID. The switch with the lowest Bridge ID wins the election. Since the priority comes first, it has more weight than the MAC address. The default bridge priority on most Cisco switches is 32768.

Values can be configured in increments of 4096, ranging from 0 to 61440. This increment is because the bridge priority value uses the high-order 4 bits of the 16-bit field, with the remaining 12 bits used for the VLAN ID in PVST+ (Per-VLAN Spanning Tree) environments. However, in the classic STP, the bridge priority is a single value.

When configuring bridge priority, network engineers set it to a low number like 4096 or 8192 on the switch they want as the root bridge. To ensure a backup root, a secondary switch can be set to 16384 or 20480. If all switches have the same priority, the MAC address becomes the tiebreaker, and the switch with the lowest MAC becomes the root bridge.

STP uses this election to identify a single root bridge, which then becomes the reference point for all path calculations. All ports on the root bridge are designated ports, and other switches calculate the best path to the root. Bridge priority also affects the port roles and states.

A switch with a lower priority is more likely to become the root, influencing which ports become root ports, designated ports, or blocking ports. In Rapid Spanning Tree Protocol (RSTP, IEEE 802.1w) and Multiple Spanning Tree Protocol (MSTP, IEEE 802.

1s), the concept is extended but similar. In Per-VLAN Spanning Tree (PVST+) on Cisco switches, each VLAN can have a different root bridge, achieved by setting a different bridge priority per VLAN. This allows for load balancing across VLANs.

The bridge priority is configured with the command 'spanning-tree vlan vlan-id priority value' in global configuration mode. The value must be a multiple of 4096. If a non-multiple is entered, the switch automatically rounds down to the nearest multiple.

Verifying the root bridge and bridge priority is done with 'show spanning-tree' or 'show spanning-tree vlan vlan-id'. The output shows the bridge ID, root ID, and priority values. Understanding bridge priority is critical for designing a stable and loop-free network.

Misconfiguration can lead to suboptimal paths, higher latency, or unexpected root bridge placement, potentially causing network outages.

Real-Life Example

Think of a city with multiple bus terminals. Each terminal has a bus station manager. Buses travel between terminals, and if there is no coordination, buses might go in circles, causing traffic jams and delays.

So the city decides to pick one central bus station manager as the main coordinator. That main manager decides which routes are best and prevents buses from taking circular routes. Each terminal manager is given a number.

The manager with the lowest number becomes the main coordinator. By default, all managers start with the same number, like 100. But one terminal is near the city center and has the fastest buses.

The city wants that terminal to be the main coordinator, so it gives that manager a lower number, like 50. Another terminal is on the outskirts and is often slow, so it gets a higher number, like 200. This way, the main coordinator is chosen based on who is best suited.

In the network, switches are like those terminal managers. Bridge priority is the number. The switch with the lowest priority becomes the root bridge (the main coordinator). Network engineers set the priority so that the most capable switch becomes the root.

If a switch fails, the next lowest priority switch takes over, just like if the main coordinator gets sick, the next manager with the lowest number becomes the new coordinator. This analogy shows how bridge priority maintains order and prevents chaos.

Why This Term Matters

Bridge priority matters because it directly determines which switch becomes the root bridge in a Spanning Tree Protocol network. The root bridge is the central point of the spanning tree, and all path decisions are made relative to it. If the root bridge is chosen poorly, the network can suffer from suboptimal traffic flows, increased latency, and even instability.

For example, if a low-end switch with limited bandwidth becomes the root bridge, it might become a bottleneck, slowing down all inter-VLAN traffic. By setting bridge priority appropriately, network engineers can ensure that the most powerful, centrally located switch becomes the root. This improves performance and predictability.

Bridge priority allows for redundancy. By configuring a secondary root bridge with a slightly higher priority (e.g., 16384 vs 4096), engineers can ensure a fast failover if the primary root fails.

In modern networks that use Per-VLAN Spanning Tree (PVST+), bridge priority can be set per VLAN, allowing different root bridges for different VLANs. This enables load balancing across multiple switches. Without proper bridge priority settings, the network might rely on the MAC address tiebreaker, which is random and could lead to a suboptimal root.

In large enterprise networks, controlling the root bridge is a fundamental best practice. It is one of the first things engineers check when troubleshooting spanning tree issues. A misconfigured bridge priority can cause a switch that should not be the root to become the root, leading to traffic hairpinning, loops, or broadcast storms.

Therefore, understanding and correctly configuring bridge priority is essential for any network professional working with Ethernet networks.

How It Appears in Exam Questions

Bridge priority appears in CCNA exam questions in several patterns. One common pattern is scenario-based questions where you are given four switches with different bridge priorities and MAC addresses, and you must select the root bridge. For example, Switch A has priority 32768 and MAC 0000.

0000.0001, Switch B has priority 32768 and MAC 0000.0000.0002, Switch C has priority 4096 and MAC 0000.0000.0003, and Switch D has priority 32768 and MAC 0000.0000.0004. The correct answer is Switch C because lowest priority wins.

Another pattern involves configuration commands. A question might ask: 'Which command configures the bridge priority of switch SW1 for VLAN 10 to 8192?' The correct answer is 'spanning-tree vlan 10 priority 8192'.

A trap might include 'spanning-tree vlan 10 root primary' which sets priority to 24576 by default, not 8192. Troubleshooting questions may show output of 'show spanning-tree' and ask why a certain switch is the root. The learner might need to notice that the root bridge has priority 0, meaning someone configured it that way.

Another scenario: three switches are connected, all with default priority. The question asks which becomes root, and the answer is the switch with the lowest MAC address. However, if one switch has priority manually set to 4096, that becomes root even if its MAC is higher.

Simulation questions might ask you to change the root bridge by configuring priority. For example: 'Configure SW1 to have a bridge priority of 4096 for VLAN 1.' You would need to enter the correct command.

There are also questions about the increment rule: 'Which of the following is a valid bridge priority? 8192, 10000, 32768, 65536.' The correct answers are 8192 and 32768 because they are multiples of 4096.

10000 is not a multiple, and 65536 is out of range (max 61440). Another type: 'What is the default bridge priority on a Cisco switch?' Answer: 32768. Questions may combine bridge priority with other STP concepts like port roles and states.

For instance: 'If a switch becomes the root bridge, what are the states of its ports?' Answer: All ports become designated ports and are in forwarding state. You may also see questions about per-VLAN spanning tree where you set different priorities for different VLANs.

The exam expects you to know that bridge priority is a key part of the Bridge ID and that the election process uses it first.

Practise Bridge priority Questions

Test your understanding with exam-style practice questions.

Practise

Example Scenario

Consider a small company network with three switches: Switch1, Switch2, and Switch3. All switches are connected in a triangle to provide redundancy, but this creates a loop. Spanning Tree Protocol is enabled to prevent the loop.

The network engineer wants Switch1 to be the root bridge because it is the most powerful and centrally located. The engineer configures Switch1 with a bridge priority of 4096 for all VLANs. Switch2 and Switch3 keep the default priority of 32768.

Switch1 has the lowest priority, so it becomes the root bridge. Now, Switch2 and Switch3 calculate their best path to Switch1. The ports that provide the best path become root ports, and the redundant ports become blocking ports.

The network is stable and loop-free. Later, the engineer wants to load balance traffic. VLAN 10 traffic should use Switch2 as root, while VLAN 20 traffic uses Switch1. The engineer sets Switch2 bridge priority for VLAN 10 to 4096, and Switch1 priority for VLAN 20 to 4096.

All other priorities remain default. Now, for VLAN 10, Switch2 is root; for VLAN 20, Switch1 is root. Traffic flows efficiently. In an exam scenario, you might be asked: 'All switches have default priority.

Switch1 MAC is 0000.0000.000A, Switch2 MAC is 0000.0000.000B, Switch3 MAC is 0000.0000.000C. Which switch becomes root?' The answer is Switch1 because it has the lowest MAC address.

But if the engineer later changes Switch3 priority to 4096, Switch3 becomes the new root even though it has the highest MAC. This shows how bridge priority overrides the MAC address. Understanding this helps you predict and control the root bridge election in real networks and on the exam.

Common Mistakes

Thinking that a higher bridge priority value makes a switch more likely to become root.

The root bridge election uses the lowest bridge priority. A higher number is worse, not better.

Remember that lower is better for bridge priority. The root bridge has the lowest priority number.

Using a bridge priority value that is not a multiple of 4096, such as 10000 or 5000.

Cisco switches only accept increments of 4096. Non-multiple values are rounded down to the nearest valid multiple, which may not be what you intended.

Always use values like 0, 4096, 8192, 12288, etc. The default is 32768.

Confusing bridge priority with cost or other parameters.

Bridge priority is used for root bridge election, not for path selection. Path cost determines which port becomes root port.

Bridge priority is about deciding which switch is the root. Path cost is about deciding which port is best to reach the root.

Assuming that changing the bridge priority requires a reload or causes network downtime.

Bridge priority changes take effect immediately without reload. The switch will recompute the spanning tree in seconds.

You can safely change the priority while the network is live; just be aware of possible temporary reconvergence.

Forgetting that in PVST+, bridge priority can be set per VLAN.

Some learners think bridge priority is global, but Cisco switches support per-VLAN priority, allowing different roots per VLAN.

Use 'spanning-tree vlan X priority Y' to set priority per VLAN.

Believing that the MAC address is the deciding factor even when priorities are manually set.

Bridge priority is compared first. Only if priorities are equal is the MAC used as a tiebreaker.

Always check the priority first. The lowest priority determines the root, regardless of MAC.

Exam Trap — Don't Get Fooled

{"trap":"A question shows two switches: Switch A has priority 24576 and MAC 0000.0000.1111, Switch B has priority 32768 and MAC 0000.0000.0001. Many learners pick Switch B because it has a lower MAC address."

,"why_learners_choose_it":"They remember that the root bridge election uses the lowest Bridge ID, and they focus on the MAC address because the MAC of Switch B is clearly lower. They forget that bridge priority is compared first.","how_to_avoid_it":"Always compare the bridge priority numbers first.

24576 is lower than 32768, so Switch A wins regardless of its MAC. Only look at the MAC if the priorities are identical. So the correct answer is Switch A."

Step-by-Step Breakdown

1

All switches start with default bridge priority

When you first power on a network of switches, each switch has a default bridge priority of 32768. This means all switches are equal in priority, so the election will rely on MAC addresses.

2

Switches exchange BPDUs

Each switch sends Bridge Protocol Data Units (BPDUs) containing its Bridge ID (priority + MAC). All switches listen to these BPDUs to learn about other switches.

3

Compare Bridge IDs

The switches compare the Bridge IDs they receive. The bridge priority is compared first. The switch with the lowest priority number wins. If there is a tie, the switch with the lowest MAC address wins.

4

Root bridge is elected

The switch with the lowest Bridge ID becomes the root bridge. Once elected, it becomes the reference point for all path calculations in the spanning tree.

5

Other switches determine their root port

Non-root switches calculate the best path to the root bridge based on path cost. The port with the lowest cost to the root becomes the root port. Other ports are placed in blocking or designated states.

6

Network converges

After the root bridge is elected and ports are assigned roles, the network reaches a stable, loop-free state. If you change the bridge priority later, the election happens again and the network reconverges.

Practical Mini-Lesson

Understanding bridge priority is essential for anyone configuring or troubleshooting STP in a real network. In a practical setting, you will often need to influence which switch becomes the root bridge. The default priority is 32768, but in most networks, you should manually set a primary root and a secondary root.

To set a primary root, use the command 'spanning-tree vlan vlan-id root primary'. This command sets the priority to 24576 on that switch (or lower if another switch already has a lower priority). For a secondary root, use 'spanning-tree vlan vlan-id root secondary', which sets priority to 28672.

Alternatively, you can directly set the priority with 'spanning-tree vlan vlan-id priority value'. The value must be a multiple of 4096. For example, 'spanning-tree vlan 10 priority 4096' sets that switch as the root for VLAN 10.

Changing the priority does not require any downtime, but the network will reconverge, which takes a few seconds. This can cause brief packet loss, so plan changes during maintenance windows. Professionals also use the command 'show spanning-tree' to verify the current root bridge and priorities.

In the output, look for 'Root ID' and 'Bridge ID'. The root ID shows the priority and MAC of the current root. The bridge ID is for the local switch. If the bridge ID matches the root ID, your switch is root.

Another practical tip: in a network with redundant links, ensure that your distribution layer switches become the root, not the access layer switches. Access switches are typically less powerful and should not be root. By setting priorities correctly, you control traffic flow and avoid bottlenecks.

Also, be aware that in PVST+, each VLAN can have a different root. This is useful for load balancing. For instance, you can make Switch A root for VLAN 10 and Switch B root for VLAN 20, so traffic is distributed.

To do this, configure 'spanning-tree vlan 10 priority 4096' on Switch A and 'spanning-tree vlan 20 priority 4096' on Switch B. Common mistakes include forgetting the 4096 increment or using 'spanning-tree priority' without specifying the VLAN, which affects only VLAN 1. Always specify the VLAN ID.

Finally, monitoring is crucial. Use 'show spanning-tree vlan vlan-id' to confirm your changes took effect. If you see a switch that should not be root, check its priority and MAC. Remember, priority is the first thing to check when troubleshooting root bridge issues.

Memory Tip

Lower bridge priority wins the root election. Think 'low priority = high power'.

Covered in These Exams

Current Exam Context

Current exam versions that test this topic — use these objectives when studying.

Related Glossary Terms

Frequently Asked Questions

What is the default bridge priority on a Cisco switch?

The default bridge priority on most Cisco switches is 32768.

Can I set a bridge priority to any number?

No, bridge priority must be a multiple of 4096. Values range from 0 to 61440. If you enter a non-multiple, the switch rounds it down to the nearest valid multiple.

Does changing bridge priority cause network downtime?

Changing the bridge priority triggers STP recalculations, which takes a few seconds. It does not cause a shutdown, but there may be brief packet loss during reconvergence.

What is the difference between 'spanning-tree vlan 1 root primary' and manually setting priority?

The 'root primary' command automatically sets the priority to 24576 (or lower if another switch has a lower priority). Manually setting priority gives you more control over the exact value.

How do I verify the current bridge priority?

Use the 'show spanning-tree' command. Look for the Bridge ID in the output, which shows the priority and MAC address.

Can I have different root bridges for different VLANs?

Yes, if you are using Per-VLAN Spanning Tree (PVST+), you can set a different bridge priority for each VLAN, allowing different root bridges per VLAN.

What happens if two switches have the same bridge priority?

The switch with the lowest MAC address becomes the root bridge.

Is bridge priority used in Rapid Spanning Tree Protocol (RSTP)?

Yes, RSTP uses the same bridge priority concept as classic STP for root bridge election.

Summary

Bridge priority is a critical configuration parameter in Spanning Tree Protocol that determines which switch becomes the root bridge. The root bridge is the central point of the spanning tree, and all path decisions are based on it. By setting a lower bridge priority, you make a switch more likely to become the root.

The default is 32768, and valid values are multiples of 4096. Configuring bridge priority is a fundamental skill for network engineers because it allows control over traffic flow, ensures optimal path selection, and provides redundancy. In the CCNA exam, you will be tested on the root bridge election process, configuration commands, and troubleshooting.

Common mistakes include forgetting that lower priority is better, using non-multiple values, and confusing bridge priority with port priority. To avoid exam traps, always compare bridge priority before considering MAC addresses. Practice with 'show spanning-tree' to verify your configurations.

Understanding bridge priority not only helps you pass exams but also ensures stable, efficient networks in the real world. Remember: low priority wins the root election, and you can set different priorities per VLAN for load balancing. Master this concept, and you will have a strong foundation in STP.