cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
884
Views
0
Helpful
3
Replies

Confirmation on how to configure the root bridge, rapid pvst

news2010a
Level 3
Level 3

Folks, on a given 3750 switch I do 'show vlan' and I see vlan 1,3,4 and 7.

spanning-tree mode is rapid-pvst.

Can you confirm if I do:

"#spanning-tree vlan 1,3,4,7 root primary"

is the right way to make this is the root brige. I am just wondering what happens if I assign a new vlan... then it means I would need to add to the spanning-tree vlan <> root command. This sounds strange.

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

Marlon

There are 2 ways to assign root -

1) spanning-tree vlan 1,3,4,7 root primary

2) spanning-tree vlan 1,3,4,7 priority where priority value is usually 8192

I usually use the second option but there is no reason not to use the first. Be aware that option 1) does not recalculate if a switch with a lower priority is added eg.

if you run the 1) command and the priority is set to 16384 and then a switch is added with a priority of 8192 to the network then the switch with 8192 will be STP root for the relevant vlans.

With either 1) or 2) you need to add new vlans when they are created.

Jon

View solution in original post

3 Replies 3

Jon Marshall
Hall of Fame
Hall of Fame

Marlon

There are 2 ways to assign root -

1) spanning-tree vlan 1,3,4,7 root primary

2) spanning-tree vlan 1,3,4,7 priority where priority value is usually 8192

I usually use the second option but there is no reason not to use the first. Be aware that option 1) does not recalculate if a switch with a lower priority is added eg.

if you run the 1) command and the priority is set to 16384 and then a switch is added with a priority of 8192 to the network then the switch with 8192 will be STP root for the relevant vlans.

With either 1) or 2) you need to add new vlans when they are created.

Jon

Thanks. One more verification:

Imagine I have total of 8 switches on the network.

So if I set "Sw1" as spanning-tree vlan 1,3,4,7 priority 8192, then I need to go to all other 7 switches and set 'spanning-tree vlan 1,3,4,7 priority 16384.

is that right?

Marlon

"hen I need to go to all other 7 switches and set 'spanning-tree vlan 1,3,4,7 priority 16384"

No you don't. You choose one other switch and configure that as the secondary root and that is it. You do not need to do anything on the other 6 switches. By default the STP priority on a switch is 32768 or 32768 + vlan ID if using extended system-id.

So the switch with priority of 8192 is the root and the switch with the 16384 priority is the secondary root ie. there in case of failure of root switch.

Jon

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card