Spanning-Tree Root Bridge Configuration

This topic is to discuss the following lesson:

may i know what u have updated in this lesson compared to previous article ??

Hi everyone
what tips or practices do you use to search for root bridges quickly
in a network with 290 switches

thank you

Hello Giovanni

In order to find the root bridge, you can issue the show spanning-tree command, and this will show you the root bridge for each VLAN configured on the switch. You’ll get something like this:

SW2#show spanning-tree vlan 10

  Spanning tree enabled protocol ieee
  Root ID    Priority    24586
             Address     5254.001a.935a
             Cost        4
             Port        1 (GigabitEthernet0/0)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    28682  (priority 28672 sys-id-ext 10)
             Address     5254.0015.bc74
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  300 sec

Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/0               Root FWD 4         128.1    P2p 
Gi0/1               Desg FWD 4         128.2    P2p

From the above output, you can see that for VLAN 10, the root bridge has an address of 5254.001a.935a. You also know which is the root port.

Now if you know nothing else about your network of 290 switches, it may be hard to find that particular switch. What you can do is take a look at the cost to the root bridge, and this will give you an idea of how far away it is. In this case, the cost is 4. For more info on how to interpret these costs, take a look at the NetworkLessons note on STP cost calculation methods.

Once you know the cost and the root port from the output, you can determine how far away the root bridge is, and via what path you can get there. You can trace your way back, from switch to switch, until you reach it. If you have no other information, that would be the way to find the root bridge.

Now having said that, even if you have 290 switches it is unlikely that the root bridge for any particular VLAN would be very far away from any switch. An STP tree should never be more than six or seven switches in diameter, and a network of 290 switches should be subdivided into several network segments anyway. A purely Layer 2 network of so many switches would not be functional.

But in most networks of that size, you would have some sort of monitoring system, so if you learn the MAC address of the root bridge, you can then search for it easily within that monitoring system. And in most such networks, you would manually configure the switches in such a way so that a specific device would become the root bridge, thus any (responsible) administrator should know which switch that is… :stuck_out_tongue:

I hope this has been helpful!