- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- HPE Aruba Networking & ProVision-based
- >
- Re: Spanning tree
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2012 02:07 PM
12-12-2012 02:07 PM
Spanning tree
If we have 4 switches (2510-48g) that we want to link together as follows:
Sw1 ----------------- Sw3
| |
| |
Sw2 ------------------Sw4
What is the best way to configure spanning tree?
The same 2 vlans will be used on all switches (untagged ports), with 2 ports on each switch tagged in both vlans which are directly connected to the other switches.
We are running the default mstp setup, with no other config setup.
What we have noticed is that if we disconnect the cable between sw1 and sw3, spanning tree recalculates causing some downtime on our network.
I think we need to configure spanning tree with instances, regions etc but have no idea how to do this. Can anyone help?
I don't want anything complicated, I just want the network to work
Efficiently if one of the circuits between sw1 and sw3, or between sw2 and sw4 gets disconnected.
Thanks for your assistance.
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2012 03:58 PM
12-12-2012 03:58 PM
Re: Spanning tree
A quick guess: SW3 is elected as the root bridge because you've left all the priorities at their defaults and it has the lowest MAC address. Use 'show spanning-tree' on each switch to check.
If that's true, my suggestion is to set switch priorities explicitly to ensure SW1 is the root and SW2 is the next lowest priority.
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2012 10:57 PM - edited 12-12-2012 11:03 PM
12-12-2012 10:57 PM - edited 12-12-2012 11:03 PM
Re: Spanning tree
Hi Paul
Thanks for helping.
I've noticed above that the diagram is wrong, it should look like this:
Sw1 ----------------- Sw3
| |
| |
Sw2 ------------------Sw4
You are correct that we have everything set to defaults.
Sw1 and sw2 are in one site, and sw3 and sw4 are in our second site.
We have two circuits that connect the sites together (extended LAN).
Basically I want the circuit which connects sw1 and sw3 as active, and then only use the second circuit between sw2 and sw4 if the primary circuit goes down.
Can I ask you to explain a little about what a root bridge is please?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012 03:13 AM
12-13-2012 03:13 AM
Re: Spanning tree
A root bridge is a fundamental part of STP that you need to understand. Start with http://en.wikipedia.org/wiki/Spanning_Tree_Protocol and if that's not enough, check out the relevant HP or Cisco or Juniper certification materials that talk about it.
But that wikipedia article should be enough. Look at the diagrams on the right; in each case the root bridge is at the top. In your network, you don't know which one is the root bridge, so it might be any of the switches in that diagram. You need to do two things:
- Make sure the root bridge is sw1 or sw3 (sw1 makes the most sense, IMO)
- Make sure the path from sw4 to sw1 goes via sw3 if that path is working. You do this by ensuring that the cost on the link between sw2 and sw4 is higher than the cost between sw3 and sw4.
Hope that makes sense. If not, it might be time to hit the books and really dig into spanning tree. :-)
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012 03:31 PM
12-13-2012 03:31 PM
Re: Spanning tree
Yeah making sw1 the root bridge seems like a good idea.
As I want all vlans to work across all switches, I guess I can leave all switches configured in instance 0, but just lower the switch priority of sw1 and sw3 to make everything connected to sw2 and sw4 favour the link between sw1 and sw3?
I also think I need to make the config-name and revision the same on all four switches to make them all part of the same region?
Have I understood correctly?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012 04:44 PM
12-13-2012 04:44 PM
Re: Spanning tree
Picking an explicit root is pretty much always a good idea (and probably a backup also). There's the possibility that some random other thing is root, and it might run old plain STP and wreck your convergence times.
Talking of that, I'm surprised you notice a problem when the link goes down: your network is pretty simple and it should converge fairly quickly. If possible you should propogate the link state to the switches: if the link goes down hard it will bypass the timer and reconfigure immediately. Using external media converters can break this.
Now as far as setting priorities on switches other than the root goes: that's only of significance in picking the root (and a backup if the root is unavailable). If the root is available, the links that are active are the ones that provide the cheapest route to the switch. All other things being equal, the two links into the root will be active, and one of the others. If you wanted to tweak this, bumping up the path cost on the standby link is easiest.
Finally as regards MSTP, that's rather complicated and I would forget about it for now. The only advantage of putting things in a region is if you are planning on running multiple instances.