
Your BCMSN And CCNP Studies Will Include Mastering The Details Of Spanning Tree Protocol (STP). While You Learned Some Of These Details In Your CCNA Studies, Quite A Bit Of It May Be New To You. Before Going On To The Intermediate And Advanced STP Features, Let's Review The Root Bridge Election Process And Learn How To Change These Results.Each Switch Will Have A Bridge ID Priority Value, More Commonly Referred To As A BID. This BID Is A Combination Of A Default Priority Value And The Switch's MAC Address, With The Priority Value Listed First. For Example, If A Cisco Switch Has The Default Priority Value Of 32,768 And A MAC Address Of 11-22-33-44-55-66, The BID Would Be 32768:11-22-33-44-55-66. Therefore, If The Switch Priority Is Left At The Default, The MAC Address Is The Deciding Factor.Switches Are A Lot Like People - When They First Arrive, They Announce That They Are The Center Of The Universe! Unlike Some People, The Switches Will Soon Get Over It. BPDUs Will Be Exchanged Until One Switch Is Elected Root Bridge, And It's The Switch With The Lowest BPDU That Will End Up Being The Root Bridge.If STP Is Left Totally Alone, A Single Switch Is Going To Be The Root Bridge For Every Single VLAN In Your Network. Worse, That Single Switch Is Going To Be Selected Because It Has A Lower MAC Address Than Every Other Switch, Which Isn't Exactly The Criteria You Want To Use To Select A Single Root Bridge.The Time Will Definitely Come When You Want To Determine A Particular Switch To Be The Root Bridge For Your VLANs, Or When You Will Want To Spread The Root Bridge Workload. For Instance, If You Have 50 VLANs And Five Switches, You May Want Each Switch To Act As The Root Bridge For 10 VLANs Each. You Can Make This Happen With The Spanning-tree Vlan Root Command.SW1(config)spanning-tree Vlan 1 ?forward-time Set The Forward Delay For The Spanning Treehello-time Set The Hello Interval For The Spanning Treemax-age Set The Max Age Interval For The Spanning Treepriority Set The Bridge Priority For The Spanning Treeroot Configure Switch As RootIn This Example, We've Got Two Switches, And SW1 Has Been Elected The Root Bridge For VLANs 10, 20, And 30. We'll Use The Spanning-tree Vlan Root Command On SW2 To Make It The Root Bridge For VLANs 20 And 30.SW2(config)spanning-tree Vlan 20 Root PrimarySW2(config)spanning-tree Vlan 30 Root PrimarySW2show Spanning Vlan 20VLAN0020Spanning Tree Enabled Protocol IeeeRoot ID Priority 24596Address 000f.90e2.1300This Bridge Is The RootSW2show Spanning Vlan 30VLAN0030Spanning Tree Enabled Protocol IeeeRoot ID Priority 24606Address 000f.90e2.1300This Bridge Is The RootSW 2 Is Now The Root Bridge For Both VLAN 20 And 30. Notice That The Priority Value Has Changed From The Default Of 32768.In The Next CCNP BCMSN Tutorial, We'll Take A Look At More STP Features.