Hello
We have TWO MXs configured with multiple VLANs. I need to a device to access device across the MXs. Is this possible without adding the VLAN to each MX? Sorry if this is confusing or I am not explaining properly, but I am attaching a diagram to help. Thank you for your help.
Solved! Go to Solution.
No, the subnet must be the one you want to access from the peer side.
Like the image I sent, if on the MX1 you want to reach the 100.x.x.x network that is on the Mx2 then your route has to be as follows.
Subnet 100.x.x.x/24 (just an example) next hop 172.16.1.2 (MX2 interface IP).
You need to add routes on each MX, but for that each MX needs to be on a link VLAN to be able to point the next hop.
So you can create vlan 999 (for example) with a /30 address on each MX and then just add the static routes.
Or just configure SD-WAN.
If you consider using SD-WAN (in my opinion it's the best way) don't forget that one of the MXes must be the HUB.
I would choose static routes.
It saves you the impact/load of tunnel encryption on the mx, less latency on you sessions, and no mtu reduction
Yes, I agree, but he also asked for a way without having to create another SVI, in which case SD-WAN "would be" the best way.
To confirm the static route would live on the MX configured without the VLAN I need to reach, correct?
Ill give this a shot, thanks again.
Yes, but you need to have a common VLAN on each MX with a configured IP, to point the next hop.
Some thing like this.
I configured the common VLAN with a uniquire Gateway IP will save no issues.
The issue is now when I add the static Route, I use the subnet of the VLAN and next Hop IP, I get the following message:
Which subnet should I use when adding the static route to MX 2? MX 2 is where I am adding the common VLAN. In your example I am using the VLAN 999 subnet 172.16.1.0/30 next hop 172.16.1.1
On MX1 I just added static route 172.16.1.0/30 next hop 172.16.1.2, this saved without error.
No, the subnet must be the one you want to access from the peer side.
Like the image I sent, if on the MX1 you want to reach the 100.x.x.x network that is on the Mx2 then your route has to be as follows.
Subnet 100.x.x.x/24 (just an example) next hop 172.16.1.2 (MX2 interface IP).
Ah I now see my mistake. Static route is working, thank you for the help kind sir! Virtual pint on me!!
The two MXs would need VLANs with unique subnets to make this work.