Meraki MX Default Route

Sarv
Getting noticed

Meraki MX Default Route

Is it possible to change the default route on MX to another LAN port (instead of WAN ports, for all Internet Traffic). We have a 3rd party appliance that we need to route all of the internet traffic through.

 

If its not possible my other idea was to use on of the free WAN ports on the MX and connect that up to our 3rd party appliance but that seems a little kludgy to me but if that's the only option maybe I will give that a shot.

 

Thanks


Sarvjit

12 Replies 12
PhilipDAth
Kind of a big deal
Kind of a big deal

I don't think you'll be able to change the default route.

 

What are you using the MX to do?  Perhaps you might be better off using it in a different mode, like passthrough.

https://documentation.meraki.com/MX/Networks_and_Routing/MX_Addressing_and_VLANs#Passthrough_or_VPN_... 

We are using the MX for FW, Content Filtering, Threat protection, etc. The third party appliance is for compression and TCP optimization. I suppose I can make the 3rd party appliance the default route for the branch site devices, or possibly use it as inline bridge mode so that all outbound traffic has to pass through the device before hitting the MX, and then the reverse inbound.

 

I wish Meraki would just bring back the compression/optimization features then no need for additional devices.

 

Thanks

 

Sarvjit

PhilipDAth
Kind of a big deal
Kind of a big deal

What speed links are you using with the compression/optimization system?

Remote site has no broadband access available. Using LTE 4G for primary.

Bruce
Kind of a big deal

@Sarv you can override the default route on the MX (which points to the WAN interfaces) by creating your own static to point back to another device accessible on the LAN interface. However, the only thing the WAN interfaces are good for then are VPN terminations as they create a more specific route in the route table. Once you’ve taken the static default path there is no way the send traffic out of the WAN interface unless it’s in a VPN tunnel.

 

EDIT: just saw your next post. Traffic routed out the LAN port won’t hit the content filtering or the Cisco AMP, so you’ll lose some of the benefits of the MX.

Sarv
Getting noticed

But I suppose its not going to let me create a static route for 0.0.0.0/0. So will have to add each IP accessed by the users individually? That wouldnt be possible, of course.

Bruce
Kind of a big deal

Give it a try, I believe it does allow a static route of 0.0.0.0/0, but it does give you a warning about overlapping routes - I’m pretty sure I set this up once. All the management traffic to the Meraki cloud continues to go via the WAN port, so you won’t lose connectivity to the device.

Sarv
Getting noticed

I will give it a shot. Thanks Bruce.

Bruce
Kind of a big deal

Just tried this and you can definitely enter a default static you just get the warning and have to acknowledge it. That was on MX16 firmware, but as I said I’ve done this before and it was on MX15 firmware, not sure how MX14 behaves if you’re still there. 

Just remember any more specific route on the MX will override the default, and there is no way to route things to the WAN ports once you’ve added the static, other than routes learnt over a VPN.

Sarv
Getting noticed

Perfect. I will give it a try. Thanks

Bruce
Kind of a big deal

@Sarv, as another option you may be able to use the Source Based Default Route if there are only a small number of VLANs (or static routes) on your MX. This works in the same way as a default (i.e. its only used if there isn't a more specific route) but takes precedence over the standard default out through the WAN port. Using that you could send certain VLANs/subnets to your optimization device, and then from the optimization device (assuming it changes the source IP address) it could then use the standard default route out through the MX. Just needs some clear thinking through of your traffic flows, both the outbound and inbound, and considering the priority of the routes when it hits the MX.

 

Thinking this through, all of the default route options are really only going to work if the optimization devices build a tunnel between themselves, and its best if the subnets that the optimization devices are in is the only subnet that is advertised over the AutoVPN (or if you're not using AutoVPN in the case of Source Based Default Routes). If you're advertising other remote subnets over the AutoVPN then the traffic will always be routed directly into the AutoVPN the minute it hits the MX, rather than to the optimization device. You could always override this with static routes (which take priority over AutoVPN routes), but this may get overly complex to administer very quickly (depending on the size of your network).

Sarv
Getting noticed

Wow Bruce you nailed everything without knowing our infrastructure, color me impressed. So my plan was exactly what you detailed out.

 

All Devices ===> MX LAN Interface (VLAN 100), the appliance would also have one of its interfaces on that same VLAN connected to the MX.

 

Branch Appliance over the internet ipsec tunnel to appliance at HQ ===> out to internet or internal VLAN's whichever the case may be. This ensures all traffic to/from that branch site is optimized.

 

Potentially I could connect a 2nd interface from appliance and run it back through the MX on another VLAN, lets say VLAN 200, the appliance would NAT the traffic using it VLAN 200 interface back through the MX but that seems counter intuitive to me.

 

P.S only a single VLAN currently at the branch location so its not too complicated and AutoVPN will be turned off for the site since all traffic will be routed through this appliance.

 

Thanks


Sarvjit

 

 

 

 

 

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.
Labels