Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Question about STP

Hello All,

 

On our distribution switch 6505 model, I have:

 

spanning-tree vlan 1,111,115,121,123,125 priority 28672
spanning-tree vlan 112,116,122,124,126 priority 24576

 

Can someone please explain what do these commands do?

Which one have higher priority?

 

Thanks.

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Hall of Fame Super Blue

Yes, STP still works.Without

Yes, STP still works.

Without those lines any of the switches interconnected with each other could become STP root or secondary.

You generally pick your distribution or core/distribution if using a collapsed core to be the STP root and secondary switchches as these tend to be the switches with most resources in terms of CPU and memory.

Be aware that if you removed those lines then your whole network would need to reconverge which would result in a temporary outage while the switches worked out which ones should be root and secondary.

Jon

Hall of Fame Super Blue

As Joseph mentions if you

As Joseph mentions if you haven't explicitly set the priority on any switches then they all use the same default priority.

So it then comes down to the mac address.

The switch with the lowest mac address becomes STP root and the switch with the second lowest mac address becomes STP secondary.

Is root primary and secondary selection same deal with root bridge election one?

Not sure what you mean by this ?

Jon

7 REPLIES
New Member

 Your disturbution switch

 Your disturbution switch 6509 will be the root bridge for the VLAN's with priority 24576.

 The same distribution switch will be secondary root bridge for VLAN's with priorty 28672.

These commnads will ensure that a switch is primary root bridge for vlan's which are configured with better priority in the network. This provides better adminstrative control in network.

 

 

 

 

New Member

Without those 2 lines above,

Without those 2 lines above, does STP still work?

Hall of Fame Super Blue

Yes, STP still works.Without

Yes, STP still works.

Without those lines any of the switches interconnected with each other could become STP root or secondary.

You generally pick your distribution or core/distribution if using a collapsed core to be the STP root and secondary switchches as these tend to be the switches with most resources in terms of CPU and memory.

Be aware that if you removed those lines then your whole network would need to reconverge which would result in a temporary outage while the switches worked out which ones should be root and secondary.

Jon

New Member

Thanks Jon , I understand

Thanks Jon , I understand better now. 

Last couple questions and hope you or anyone can help me to answer:

How do these switches define who is the root and secondary if there aren't 2 lines above?

Is root primary and secondary selection same deal with root bridge election one?

Thanks!

Super Bronze

DisclaimerThe Author of this

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

Actually primary and secondary roots are relative, not absolute.

 

With STP priorities, lower is better.

 

Root bridge is active switch with lowest bridge ID, which is priority + MAC.

 

Secondary bridge is active switch with next lowest bridge ID.

 

In your original posting, often you'll want to chose which bridge should be root, and perhaps which to take its place if it fails (the secondary).  When using multiple VLANs, you might, want different roots (and secondaries) for different VLANs (this allows load distribution).

Hall of Fame Super Blue

As Joseph mentions if you

As Joseph mentions if you haven't explicitly set the priority on any switches then they all use the same default priority.

So it then comes down to the mac address.

The switch with the lowest mac address becomes STP root and the switch with the second lowest mac address becomes STP secondary.

Is root primary and secondary selection same deal with root bridge election one?

Not sure what you mean by this ?

Jon

New Member

Hi Jon,Forget about the

Hi Jon,

Forget about the second question, I was confused about the STP root bridge. Thanks,

84
Views
0
Helpful
7
Replies
CreatePlease to create content