Unsolved
1 Rookie
•
2 Posts
0
78
October 16th, 2024 08:01
Enabling Spanning-tree on an active switch
Hi
I have a MX7000 blade solution with two MX9116N switches running in a VLT domain.
The issue I have is when we reboot the one of the switches its partner seems to think there is an issue and brings down its edge ports -- I have no idea why this is happening.
When checking the configurations, I can see that for some reason whoever configured the switches didn't enable spanning-tree on the switches. Its configured globally but set to disabled. So I am making an assumption that this is the reason for it.
This is the spanning tree configuration on both switches (the config is the same on both switches)
spanning-tree mode rstpspanning-tree rstp priority 61440spanning-tree disable
My questions is can I safely enable spanning tree globally and then apply stp to the port-channels without causing any downtime to those port-channels, or will spanning tree put them into blocking mode before getting to forwarding mode?
To confirm this would be the command I would add to the port-channels:
spanning-tree port type edge
Thank you in advance and any help/advice is appreciated.
DELL-Chris H
Moderator
•
9.4K Posts
0
October 16th, 2024 12:42
MartinScarrow,
Enabling STP globally and then applying STP to the port-channels without causing downtime is possible, but it depends on how you configure it.
Here's a step-by-step approach you can follow:
1. Enable STP globally on both switches:
spanning-tree mode rstp
This will enable RSTP (Rapid Spanning Tree Protocol) globally on both switches.
2. Configure the STP priority:
spanning-tree rstp priority 61440
This sets the STP priority to a default value of 61440, which is a good starting point.
3. Configure the STP mode for the port-channels:
spanning-tree port-channel *channel_number* mode edge
Replace channel_number with the actual number of the port-channel you want to configure. This command enables STP on the port-channel and sets the mode to "edge", which means that the port-channel will become a leaf node in the STP topology.
Here's an example:
spanning-tree port-channel 1 mode edge
This command enables STP on port-channel 1 and sets it to "edge" mode.
When you enable STP globally and then apply STP to the port-channels, the switches will go through a transition phase before reaching forwarding mode. During this transition, the port-channels may go through a brief period of blocking, but this should not cause any downtime.
Let me know if this helps.
MartinScarrow
1 Rookie
•
2 Posts
0
October 17th, 2024 06:31
Hi Chris
Thank you for replying.
So to clarify, as the two switches already have the following configuration on them:
I can go in to the port-channel interface and add spanning-tree:
Once applied to all port-channels, I can enable spanning-tree
I can monitor the port-channel status via this command:
The questions I have are:
Thank you again for your help with this.
Martin
DELL-Erman O
Moderator
•
2.8K Posts
0
October 17th, 2024 07:50
Hi,
I think when you enable spanning-tree on the second switch, the switches will start talking to each other to figure out which one is the main switch. This might cause a short period where traffic isn’t flowing through the port-channels.
However, because you’ve set the port-channel to be an edge port, it won’t get blocked even if it’s not the main path. This means the port-channel will keep forwarding traffic, so the servers will stay connected.
The switches will sort out their roles and adjust the port-channels, but this process shouldn’t block both port-channels at the same time. So, while there might be a brief moment of instability, it won’t stop the port-channels from working, and the servers will always have a connection to at least one switch.