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

Attention: The Community will be in read-only mode on 12/14/2017 from 12:00 am pacific to 11:30 am.

During this time you will only be able to see content. Other interactions such as posting, replying to questions, or marking content as helpful will be disabled for few hours.

We apologize for the inconvenience while we perform important updates to the Community.

New Member

STP Primary or Priority

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

Hall of Fame Super Blue

Re: STP Primary or Priority


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.


Re: STP Primary or Priority

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;-)



New Member

Re: STP Primary or Priority

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

CreatePlease to create content