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)
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.
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.
DELL-Chris H
Social Media and Communities Professional
Dell Technologies | Enterprise Support Services
#IWork4Dell
Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!
I can go in to the port-channel interface and add spanning-tree:
conf t interface port-channel10 spanning-tree port type edge
Once applied to all port-channels, I can enable spanning-tree
conf t no spanning-tree disable
I can monitor the port-channel status via this command:
show spanning-tree brief | grep port-channel
The questions I have are:
As one switch will have spanning-tree enabled and the other doesn't at this point will this cause an issue, due to the blade servers having a connection to both switches, I just need to make sure that the servers have at least one connection to a switch.
This follows on to when I enable spanning-tree on the second switch, they wont suddenly start blocking both port-channels on both switches while they figure themselves out?
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.
DELL-Erman O
Social Media and Communities Professional
Dell Technologies | Enterprise Support Services
#IWork4Dell
Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!
DELL-Chris H
7 Practitioner
•
9682 Posts
•
48046 Points
0
0
Posted 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.
DELL-Chris H
Social Media and Communities Professional
Dell Technologies | Enterprise Support Services
#IWork4Dell
Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!