03-17-2009 11:36 AM - edited 03-06-2019 04:39 AM
When configuring STP is it better to use the "Primary" option or to statically set the priority? The Cisco docs say to use primary and secondary, but I have always heard to set everything as static as possible.
Just looking for your thoughts.
Thank You
03-17-2009 12:08 PM
Jeff
Different people will probably recommend different things.
If you use the primary option then the switch will calculate the value at the time you enter the command and ensure that it chooses a lower value than any other. Note that if a switch was then introduced with a lower value than this then the original switch would not recalculate.
Personally i have always used static values ie. 8192 for primary and 16384 for secondary. Has always worked well for me.
Jon
03-19-2009 07:22 AM
I would also recommend the use of the priority.
First, there is no command to make sure that you are the root bridge.
Furthermore, the root command is in fact a macro that is expanded in several command. The main use of this macro is not to influence the root bridge election, but rather to tune the timers depending on the diameter entered as a parameter (along with a hello-time). This STP timer tuning is not really relevant any more with RSTP and MST.
You don't need to tune the timer, so just set the priority and you're doing exactly what the root macro does;-)
Regards,
Francois
03-19-2009 10:22 AM
I agree with the prior posts about setting the priority statically but would like to add one more tidbit. Before setting the priority to any value 8196, 4092, etc, be sure to run a "show spanning-tree" command. Verify the priority of the current root bridge and make sure the value you set is LOWER to ensure that switch becomes the root. Remember this value for setting your secondary with a value betweent he old root and the new one.
Good Luck
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide