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
Pool Money for Your Netflix Subscription
What Is a Remote Gateway and Remote Subnet in a VPN Connection?_Virtual Private Network_Huawei Cloud
Tiny Tina Deadshot Build
Blackstone Launchpad Ucf
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Bank Of America Appointments Near Me
ds. J.C. van Trigt - Lukas 23:42-43 - Preekaantekeningen
Campaign Homecoming Queen Posters
Celsius Energy Drink Wo Kaufen
Betonnen afdekplaten (schoorsteenplaten) ter voorkoming van lekkage schoorsteen. - HeBlad
Money blog: Domino's withdraws popular dips; 'we got our dream £30k kitchen for £1,000'
Dr Manish Patel Mooresville Nc
Condogames Xyz Discord
1-833-955-4522
Shasta County Most Wanted 2022
TBM 910 | Turboprop Aircraft - DAHER TBM 960, TBM 910
Tyler Sis University City
Heart and Vascular Clinic in Monticello - North Memorial Health
Great Clips Grandview Station Marion Reviews
The EyeDoctors Optometrists, 1835 NW Topeka Blvd, Topeka, KS 66608, US - MapQuest
Www.patientnotebook/Atic
Naval Academy Baseball Roster
3 2Nd Ave
Aliciabibs
Naya Padkar Gujarati News Paper
Craigslist Pasco Kennewick Richland Washington
Smartfind Express Login Broward
Masterbuilt Gravity Fan Not Working
Annapolis Md Craigslist
Reserve A Room Ucla
Himekishi Ga Classmate Raw
WOODSTOCK CELEBRATES 50 YEARS WITH COMPREHENSIVE 38-CD DELUXE BOXED SET | Rhino
How To Make Infinity On Calculator
15 Downer Way, Crosswicks, NJ 08515 - MLS NJBL2072416 - Coldwell Banker
Dreamcargiveaways
Watchdocumentaries Gun Mayhem 2
oklahoma city community "puppies" - craigslist
Directions To 401 East Chestnut Street Louisville Kentucky
USB C 3HDMI Dock UCN3278 (12 in 1)
Seminary.churchofjesuschrist.org
Great Clips Virginia Center Commons
The Conners Season 5 Wiki
Weather Underground Cedar Rapids
Birmingham City Schools Clever Login
Cocorahs South Dakota
Sour OG is a chill recreational strain -- just have healthy snacks nearby (cannabis review)
Martha's Vineyard – Travel guide at Wikivoyage
Jammiah Broomfield Ig
Jigidi Free Jigsaw
The Blackening Showtimes Near Ncg Cinema - Grand Blanc Trillium
Contico Tuff Box Replacement Locks
Gameplay Clarkston
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.