Configuring a Root Switch on IOS Based Cisco Switches

When you use spanning tree, a root switch is designated for you. However, knowing the location of the root switch makes troubleshooting a switched network much easier. Furthermore, by “manually setting” a root switch, you can use your most powerfull switch to become the root.


Setting the root switch for a particular VLAN is quite an easy task. Use the following global configuration command:
Switch(config)#spanning-tree vlan vlan_id root primary

If you also want to manually set the backup root switch for the network, use the following command on your designated backup switch:
Switch(config)#spanning-tree vlan vlan_id root secondary

The vlan_id has to be the same in both command lines.

The Conversation

Follow the reactions below and share your own thoughts.

Leave a Reply

You may also like-

Protect Against Unauthorized SwitchesProtect Against Unauthorized SwitchesThe following recipe contains one method to protect against the addition of unauthorized switches to a Cisco Catalyst. This refers to the 6500 series, ... Disable or turn off CDP on Cisco switchesDisable or turn off CDP on Cisco switchesCisco Discover Protocol or CDP is a Cisco-proprietary protocol that runs on all Cisco products. CDP allows devices to learn about neighboring devices (the ...