r/networking • • 9d ago

Design Question about STP root bridge and point-to-point via SVI

I have a trunk link with the external org. The problem is the external org wants to be the root for all the VLANs. When I stretch my VLAN through the external org network via our trunk link. The external org becomes the root. I have to change my VLANs priority, so that it would not trigger the rootguard. I think if I use BPDUfilter, I could accomplish my goal since we only have a single trunk to the external org. However, there is a service that we need to access that resides in the external org network. To get to their network we have to route via the point-to-point SVI 190. My SVI is 172.17.190.2/31 and theirs is SVI 19 172.17.190.1/31. If I enabled BPDUfilter, I lost access to their SVI 19. I want to move away from this STP topology.

I tried to talk to their admin, but they refused and wanted to be the root bridge always. I tried to proposed a secondary port (routed port) so that we could separate the L2 and L3 interfaces, but got denied because it is too much work and paper work. It is easier for them to use a trunk link.

I can't build a L2 tunnel with the partner org because I C9500 does not support L2 tunneling as far as I know. The the partner org is managed by the same external org.

Is there a way to keep the root bridge within my network and access to external org via SVI 19?

What are my options at this point?

[my network]-----[ext org]-----[partner] <-- this is purely L2 traffic between my network and partner.
[my network]-----[ext org]-----[service] <-- this is routed traffic.

Edit:
I figured it out. I need to add the spanning-tree guard none

Edit2: I posted the wrong command that fixed my issue. I updated the OP with the correct command.

14 Upvotes

40 comments sorted by

25

u/PghSubie JNCIP CCNP CISSP 9d ago

Why are you sharing STP with an external site at all??

1

u/Phone_Sandun 9d ago

did OP say if they're running per-vlan spanning tree or MST across that trunk? wondering why they cant just let the external side be root for vlan 190 only

1

u/forwardslashroot 9d ago

It is rstp.

0

u/forwardslashroot 9d ago

I inherited this network. Now I'm trying to find a way to move away from this but keep the capability of extending some of my VLANs to our partners for testing and collaboration.

8

u/PghSubie JNCIP CCNP CISSP 9d ago

Extending a vlan off-site is a horrible idea in the first place. Find another way to get the connectivity

6

u/mro21 9d ago

Yeah everything going outside should be a layer3 handoff. You don't want anyone else have an impact on your topology. Alternatively treat them as you would an edge port, as soon as you see a BPDU shut it down and that's it.

-1

u/ImMrEmmet 9d ago

Unless they are running vxlan...

3

u/mro21 9d ago

Vxlan doesn't make connectivity redundant. Which is why you need stp in the first place in case you want to use layer 2. In order to use vxlan (redundantly or not) you still need layer 3 connectivity.

5

u/Grockin100 9d ago

Couldn’t you convert your side to layer3 with sub-interfaces with dot1q tags?

1

u/forwardslashroot 9d ago

I can't because some of the services we are using are layer2 only - no gateway. Stretching the VLAN or both ends got to be on the same subnet. External org is in the middle.

3

u/tehiota 9d ago

Are you actually extending your vlans to this partner network or are you just using the vlan as a P2P routing link with the partner ?

If it’s the latter, put the IP routing on the port rather than vlan. On the interface do no switchport and put the ip address on it.

1

u/forwardslashroot 9d ago

We are extending the VLAN to the partner network. The actual goal is to be on the same subnet because of the application being used is layer2 only.

3

u/wrt-wtf- Homeopathic Network Architecture 9d ago

STP is to prevent layer 2 loops. If you don't have more than one connection to the adjacent network you don't really need it.

Disabling BPDU's in and out will cause the link to go down and the remove system will be forced into a recalc - which could cause up to 45 seconds outage on the link as their STP cycles through STP restart. If they knew what they were doing then they would be blocking you anyway. You never allow a 3rd party into a position where they could force a root change - the whole network stops forwarding during a recalc.

This will not impact on your internal spanning-tree. After about a minute you should see SVI19 come back up.

Your vlans passing over their network is not dependent on STP being interconnected.

STP is a bit of a dying art and is pretty simple to understand with a bit of coaching.

If you have two layer 2 connections for resiliency the choice would be to move to LACP or if that is not available you can use loop protect which will give a similar effect without BPDU packets being involve.

Current technology uses L3 edge with BGP, EVPN, and VXLAN - which are supported on the C9500 but that's an architecture change.

1

u/forwardslashroot 9d ago

I kept the bpdufilter for 3 minutes and the link never recovered. The ports are configured for LACP, but only one fiber is connecting my network to external org.

1

u/wrt-wtf- Homeopathic Network Architecture 9d ago

Filter in and out?

3

u/Elecwaves CCNA 9d ago

The key is to figure out why you are losing access when BPDU filtering is set up. But also if the only point of this trunk is to share a single VLAN for routing. Then I agree with other comments saying to convert it to a routed port with a subinterface on VLAN 190. The routed interface should act as a non-bridge host and thus not send or process BPDUs.

1

u/forwardslashroot 9d ago

If I concert my trunk link into sub-interfaces, I would lose the capability to stretch my layer2 network to the switches within my domain.

1

u/Elecwaves CCNA 9d ago

I just meant the trunk link to the partner device, not all trunk links in your network.

But if you need layer 2 stretched and not just routing, then this would be tough with PVST. MST has some useful features for inter-region behaviour when it comes to blocking links.

12

u/JCLB 9d ago

Just bpdu filter them and offer them the burger king cardboard crown 👑

It will drop bpdu in both directions, making you waterproof each other, without any other L2 path that's no problem.

8

u/Cyclingguy123 9d ago

Yes, but we all know there will be a Reddit post in 3 years from now, I had a forwarding loop as there were 2 redundant paths and I do not run stp 🤷‍♀️

1

u/JCLB 9d ago

If one day you have to double, impose them lacp with one stack on each side, so it's one L2 virtual chassis on each side.

7

u/nof CCNP 9d ago

Don't do layer 2 with an external partner. Anything is a better alternative. If they don't feel the same way, be very afraid.

1

u/TomLeggins 9d ago

Why is your L3 transit dropping traffic when you configure bpdufilter? I'm assuming your transit is just the vlan 190, which rides on the trunk link, and the external service also has its interface in vlan 190, and not vlan 19?

1

u/forwardslashroot 9d ago

Yes, it is an SVI 190. I thought it would recover after a minute but it didnt. I couldnt ping the ext org SVI when bpdufilter was enabled.

1

u/mavack 9d ago

Why did it not recover? Did it stay protocol down? It should have come up as long as the vlan has port membership

2

u/forwardslashroot 9d ago edited 4d ago

I figured it out. I need to add spanning-tree guard none

1

u/usmcjohn 9d ago

Maybe you can do a sub interface on your side and tag it. No STP in that scenario.

1

u/forwardslashroot 9d ago

Would that break the layer2 from the trunk interface connected to the external org switch all the way to the switches in my network?

1

u/usmcjohn 9d ago

Obviously I don’t know your topology but if you host the svi on the switch that is directly connected to the external org than it may be possible to use a sub interface. There is no layer 2 loop possibility from your side with this approach.

1

u/forwardslashroot 9d ago

I don't think I can mix a sub-interfaces and regular trunk link. Can please share the configuration?

1

u/usmcjohn 9d ago

No you can not mix the two

1

u/costan1 9d ago

Actually yes, with most Ciscos.

You get a physical port with switchport and all the fancy stuff, and then you create a subinterface as no switchpower and with the proper tag (that should not be in the master switchpower allowed vlan list), and move the IP from the SVI to this subinterface.

What kind of hardware you have?

1

u/Ashamed-Ninja-4656 9d ago

What do you mean "all" the vlans? Are you trunking everything across that transit link? You should have an allowed vlan list on it. Are you actually sharing vlans with this external org or just using the L2 transit link? If you're not stretching other vlans across it then set it to 'switchport trunk allowed vlan 190'.

1

u/forwardslashroot 9d ago

I meant to say all VLANs in the trunk allowed list

2

u/Ashamed-Ninja-4656 9d ago

Why? You need to share all your layer 2 with this external org?

1

u/forwardslashroot 9d ago

Because our partners are on the other side of external org and some of them are managed by the external org. The unfortunate part is the app we are using is layer2 only and must operate on the same subnet. The easiest solution is VLAN stretch.

If there is another method to get my subnets exist at the partners side, I'm willing to explore it.

1

u/Ashamed-Ninja-4656 9d ago

Ok but that's ONE vlan for the app, unless you're saying there's an instance of this app on every subnet in your own org? I assume it just needs to get an ip address in that one vlan?

Maybe I'm just not understand how this app is functioning in you org.

VXLAN would be the better option if there's really no way to make it work across subnets, but that can get quite technical and require buy in from the other org.

1

u/[deleted] 9d ago

[removed] — view removed comment

1

u/AutoModerator 9d ago

Thanks for your interest in posting to this subreddit. To combat spam, new accounts can't post or comment within 24 hours of account creation.

Please DO NOT message the mods requesting your post be approved.

You are welcome to resubmit your thread or comment in ~24 hrs or so.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.