cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
842
Views
0
Helpful
9
Replies

Role of 'root' in spantree?

iholdings
Level 1
Level 1

Greetings,

We have a C2948G CatOS 8.3 switch.  When we plug in an AP controller into an open port - and then unplug that port the switch drops all traffic.

When I did a "show spantree" the port's role is ROOT (the only role of that kind on the switch:

2/28                    not-connected  -         100   32

2/29                    not-connected  -         100   32

2/30                    forwarding    ROOT         4   32 P2P

2/31                    forwarding    DESG         4   32 P2P

2/32                    forwarding    DESG        19   32 Shared

2/33                    not-connected  -         100   32

2/34                    not-connected  -         100   32

2/35                    not-connected  -         100   32

2/36                    not-connected  -         100   32

2/37                    not-connected  -         100   32

2/38                    not-connected  -         100   32

2/39                    forwarding    DESG         4   32 P2P

2/40                    not-connected  -         100   32

2/41                    not-connected  -         100   32

2/42                    not-connected  -         100   32

2/43                    forwarding    DESG         4   32 P2P

2/44                    not-connected  -         100   32

2/45                    forwarding    DESG         4   32 P2P

2/46                    not-connected  -         100   32

2/47                    forwarding    DESG        19   32 P2P

2/48                    forwarding    DESG        19   32 P2P

2/49                    forwarding    DESG         4   32 P2P

2/50                    forwarding    DESG         4   32 P2P, PEER(STP)

2/51                    not-connected  -           4   32

2/52                    not-connected  -           4   32

I don't know what that means.  Can anyone help?  Thanks

1 Accepted Solution

Accepted Solutions

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello  Iholdings,

root means STP root port this means that when the AP is connected is seen as the root bridge

in STP the root bridge is the port to the root bridge

For this reason when you disconnect the AP you see problems

you should decrease the spanning-tree priority with

set spantree priority vlan#

it is not correct to have an AP as root bridge in STP it should be a regular LAN Swtich

STP priority defaults to 32768 and the lower is the better.

if priorities  are equal the lowest MAC wins

Bridge-ID = STP-priority + MAC address

lowest wins

Hope to help

Giuseppe

View solution in original post

9 Replies 9

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello  Iholdings,

root means STP root port this means that when the AP is connected is seen as the root bridge

in STP the root bridge is the port to the root bridge

For this reason when you disconnect the AP you see problems

you should decrease the spanning-tree priority with

set spantree priority vlan#

it is not correct to have an AP as root bridge in STP it should be a regular LAN Swtich

STP priority defaults to 32768 and the lower is the better.

if priorities  are equal the lowest MAC wins

Bridge-ID = STP-priority + MAC address

lowest wins

Hope to help

Giuseppe

The device is not an AP but an AP controller.  Is it acting in the same manner?

So I need to change the spantree priority to a much lower number (default = 32768)?

Thanks for your help.

iholdings wrote:

The device is not an AP but an AP controller.  Is it acting in the same manner?

So I need to change the spantree priority to a much lower number (default = 32768)?

Thanks for your help.

Yes it is acting the same whether it is AP or AP controller.

Yes you need to set the priority on the switch to be lower than that of the AP controller.  Assuming the AP controller has not had it's STP priority modified you need to make the STP priority on the switch lower than 32768. See Giuseppe's command example for how to do it.

Jon

Hi -- I think what Giuseppe is trying to say is that the AP controller is participating in the root bridge election for the particular vlan it is on -- and it is winning. This is why the port goes to "root." A port status of "root" means that this port has the lowest cost to the root bridge, which is your AP controller.

In PVST+ and other versions of it, the root bridge is the bridge with the lowest bridge ID FOR THAT VLAN.

The bridge ID is a combination of the bridge priority and the MAC address -- again for a particular vlan. In other words, each vlan in PVST+ on a particular switch has an associated bridge ID.

So, on the AP controller, change the priority setting for that vlan to a HIGHER value than the value that is normally used for the root bridge when the AP controller is not connected.

Having zip experience configuring CatOs - any chance I could get some help with applying the correct set command?  Is this port specific?

Config. attached.

thanks.

iholdings wrote:

Having zip experience configuring CatOs - any chance I could get some help with applying the correct set command?  Is this port specific?

Config. attached.

thanks.

No it's not port specific, it is a global command. Giuseppe gave you the command ie.

set spantree priority vlan#

so use a priority of 8192 to make it the root bridge. If you have multiple vlans you need to enter that command for each vlan - so for example to set it for vlan 1 -

set spantree priority 8192 vlan 1

Do this out of hours as there may be an STP reconvergence.

Jon

Enter this on the 2948.

set spantree priority 4096 mst

By the way, if you really know "zip" about Spanning Tree, you need to learn it fast or find someone who does to manage your switched environment. This is fundamental to magaing a switched network.

Thanks for everyone's help.  I'll be doing some serious reading regarding spantree

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