Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (2024)

Table of Contents
Will Clifton Libby Teofilo
Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (1)

In this Cisco CCNA training tutorial, you’ll learn about manipulating the Spanning Tree Root Bridge Election. Scroll down for the video and also text tutorial.

The Spanning Tree Root Bridge Election on Cisco Switches Video Tutorial

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (2)

Will Clifton

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (3)

This course “filled in the blanks” left by textbooks and other videos. Neil communicates concepts and real-world scenarios extremely well. I have found it to be a good match for my pacing and a valuable tool either on its own or in tandem with other study materials.

Will Clifton

Flackbox Cisco CCNA course student - click here to enroll

The Root Bridge Election

Since Spanning Tree selects paths pointing towards and away from the Root Bridge for forwarding traffic along, the Root Bridge acts as a center point of the LAN. Best practice is to ensure that a pair of high-end core switches are selected as the first and second most preferred Root Bridge.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (4)

You can manipulate the Root Bridge Election by setting Bridge priority on your switches. The default value is 32768, and the lowest number is preferred. In the case of a tie, the switch with the lowest MAC address will be selected.

If you do not manually set the Bridge priority on your switches, they're all going to default to 32768. The switch with the lowest MAC address will be the Root Bridge and that is liable to be the oldest switch in your network.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (5)

Suboptimal Root Bridge

If you think about it, whenever Cisco makes a new switch, we're going to increment the MAC address. So, the lowest MAC address is probably going to be the oldest switch. That is likely to give you suboptimal Root Bridge selection.

In on our example below, all switches have been left with the default Bridge Priority. You'd be surprised at how often this does actually happen in production networks.

That is because Spanning Tree works just fine straight out of the box and on a lot of networks, therefore, administrators don't touch it at all. They just leave it as is and that can lead to the problem as you see in our example.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (6)

In the example, the switch with the lowest MAC address becomes the Root Bridge and that happens to be the old switch that we've got in the warehouse down in the bottom right.

That old warehouse switch has got little bandwidth links. It has fast Ethernet links compared to Gigabit Ethernet and it's old so it's got limited GPU and memory resources.

If we check this, I go on to the warehouse switch and enter the command:

show spanning-tree vlan 1

I can see here that this bridge is the root and the priority is the default of 32768.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (7)

Now, we'll look at the actual paths that traffic will take throughout our network. I've removed links that have got blocking ports on them in the diagram. It only shows the Spanning Tree where the traffic is going to be forwarded over.

Let's see what would happen if we had a PC that was connected into the Access1 switch on the left and it sent traffic to the Access3 switch over near the right-hand side.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (8)

The PC connected to Access1 sends some traffic in with a destination address of the other PC. Access1 will extend it to Distribution2. It will then go at Core1, then to Distribution3, then Access4, then the Warehouse, and then Access3.

It's pinging around all over the network and going via the warehouse switch, and it's seven hops in total. That's the suboptimal Root Bridge selection. All traffic between different pairs of distribution switches will go over an indirect path and transit that old switch in the warehouse.

That's likely to congest some links overwhelmed with CPU and RAM, and of course, lead to suboptimal performance.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (9)

Root Bridge Primary Configuration

What we should have done was configure the Root Bridge to be sitting on one of our core switches so that all traffic is going to go through that path instead.

The way that you set this is that, at global config on the switch that you want to be the Root Bridge, enter the command:

spanning-tree vlan 1 root primary

Now, you can have different switches being the Root Bridge for different VLANs. Here, we're using VLAN 1 for our example. When you put that command, it sets a Bridge Priority of 24576 which is better than the default Bridge Priority. It is manipulating the elections so that this switch will be elected as the Root Bridge.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (10)

Root Bridge Primary Verification

To verify it, I go to Core1, enter the commands:

show spanning-tree vlan 1

It will show the message, "This bridge is the root," and I can see the priority is 24576.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (11)

Optimal Root Bridge

If we now look at the Spanning Tree in the diagram here, again, we've set the core bridge as the Root Bridge. I've taken out all of the links that have got blocking parts on there.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (12)

If we now send traffic from a PC connected into Access1, sending it to another PC if it's connected to Access3, the path it will go along is Access1 to Distribution2, to Core1, to Distribution4, to Access3.

Now, you see it's only five hops as compared to the seven hops that we had before. It's going along the most direct path which is going through the core. So, that is much more optimal Root Bridge placement.

Root Bridge Failover

Using the same example, if the Core1 switch fails, we want to ensure that traffic still goes through the most direct centralised path.

To do that, we need to configure Core2 to be the next most preferred Root Bridge. If we didn't do that and Core1 went down, when we had that outage we would be back to the warehouse being the Root Bridge again and we want to avoid that. We always want traffic to be going through the core.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (13)

Root Bridge Secondary Configuration

To do that, we go on the command line on Core2, and we enter the command:

spanning-tree vlan 1 root secondary

It's root primary on the switch you want to be the Root Bridge and its root secondary on the switch that you want to be the backup. That sets a Bridge Priority of 28672.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (14)

Root Bridge Secondary Verification

In Core2, we verify it with the same command:

show spanning-tree vlan 1

Here, I can see the Root Bridge is still on Core1, and that this has got the next best priority so this will be the second most preferred switch.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (15)

The Spanning Tree Root Bridge Election on Cisco Switches Configuration Example

This configuration example is taken from my free ‘Cisco CCNA Lab Guide’ which includes over 350 pages of lab exercises and full instructions to set up the lab for free on your laptop.

Click here to download your free Cisco CCNA Lab Guide.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (16)

  1. Configure the network so that traffic between the PCs and the Internet travels along the shortest available path. If a core/distribution switch fails traffic should failover to the next shortest available path. Do not change any Layer 3 configuration such as HSRP settings.

We need to configure the Spanning Tree so it aligns with the HSRP configuration. R1 is the HSRP active gateway. R1 is directly connected to the core/distribution switch CD1 (but not CD2) so we should make this the Spanning Tree Root Bridge.

CD1(config)#spanning-tree vlan 10 root primary

2. If CD1 fails we need to ensure that the Spanning Tree Root Bridge will failover to CD2 rather than an access layer switch.

CD2(config)#spanning-tree vlan 10 root secondary

3. Verify CD1 has the best Bridge Priority and becomes the Root Bridge.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (17)

4. Check the other switches to verify CD2 has the next best Bridge Priority.

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (18)

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (19)

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (20)

5. Verify the end to end traffic path between the PCs and the Internet by using the ‘show spanning-tree vlan 10’ and ‘show mac address-table’ commands as shown in the last lab exercise.

Additional Resources

Understanding and Configuring Spanning Tree Protocol (STP) on Catalyst Switches: https://www.cisco.com/c/en/us/support/docs/lan-switching/spanning-tree-protocol/5234-5.html

Spanning Tree Configuration: https://www.ciscopress.com/articles/article.asp?p=2832407&seqNum=6

What is a Root Bridge (Switch), Bridge (Switch) Priority Value and Bridge (Switch)ID: https://www.omnisecu.com/cisco-certified-network-associate-ccna/what-is-a-root-bridge-switch.php

Want to practice Cisco CCNA technologies on your laptop? Download my complete 350-page Cisco CCNA Lab Guide for free.

Click Here to get my Cisco CCNA Gold Bootcamp, the highest rated CCNA course online with a 4.8 star rating from over 20,000 public reviews.

Libby Teofilo

Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (21)

Text by Libby Teofilo, Technical Writer at www.flackbox.com

With a mission to spread network awareness through writing, Libby consistently immerses herself into the unrelenting process of knowledge acquisition and dissemination. If not engrossed in technology, you might see her with a book in one hand and a coffee in the other.

  • Cisco STP Spanning Tree Versions
  • How the Spanning Tree Works
Spanning Tree Root Bridge Election on Cisco Switches - FlackBox (2024)
Top Articles
What is a balance sheet and why is it important?
Is Anxiety a Disability? How to Qualify for Benefits for Anxiety | Atticus
Calvert Er Wait Time
Wordscapes Level 5130 Answers
Ets Lake Fork Fishing Report
Affidea ExpressCare - Affidea Ireland
Fcs Teamehub
Mikayla Campino Video Twitter: Unveiling the Viral Sensation and Its Impact on Social Media
Grand Park Baseball Tournaments
The Rise of Breckie Hill: How She Became a Social Media Star | Entertainment
อพาร์ทเมนต์ 2 ห้องนอนในเกาะโคเปนเฮเกน
Builders Best Do It Center
Dumb Money
Sams Early Hours
Meritas Health Patient Portal
Peraton Sso
Grasons Estate Sales Tucson
Second Chance Maryland Lottery
Missed Connections Inland Empire
20 Different Cat Sounds and What They Mean
Pjs Obits
Beverage Lyons Funeral Home Obituaries
Georgia Cash 3 Midday-Lottery Results & Winning Numbers
Isaidup
Del Amo Fashion Center Map
What Individuals Need to Know When Raising Money for a Charitable Cause
Things to do in Pearl City: Honolulu, HI Travel Guide by 10Best
Google Flights To Orlando
Shauna's Art Studio Laurel Mississippi
Halsted Bus Tracker
Google Chrome-webbrowser
Spectrum Outage in Genoa City, Wisconsin
Stanley Steemer Johnson City Tn
Htb Forums
Sam's Club Gas Prices Florence Sc
Craigslist Florida Trucks
A Comprehensive 360 Training Review (2021) — How Good Is It?
What Is A K 56 Pink Pill?
manhattan cars & trucks - by owner - craigslist
Weather Underground Cedar Rapids
Exam With A Social Studies Section Crossword
Noh Buddy
Blow Dry Bar Boynton Beach
Ucla Basketball Bruinzone
Jane Powell, MGM musical star of 'Seven Brides for Seven Brothers,' 'Royal Wedding,' dead at 92
Jeep Forum Cj
Uno Grade Scale
M Life Insider
O.c Craigslist
Denys Davydov - Wikitia
Tenichtop
Latest Posts
Article information

Author: Ouida Strosin DO

Last Updated:

Views: 6204

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Ouida Strosin DO

Birthday: 1995-04-27

Address: Suite 927 930 Kilback Radial, Candidaville, TN 87795

Phone: +8561498978366

Job: Legacy Manufacturing Specialist

Hobby: Singing, Mountain biking, Water sports, Water sports, Taxidermy, Polo, Pet

Introduction: My name is Ouida Strosin DO, I am a precious, combative, spotless, modern, spotless, beautiful, precious person who loves writing and wants to share my knowledge and understanding with you.