My setup is MX400 - Gi1/1/1 External Switch Gi1/1/2 - Internet
My ISP has given me a block of IPs, say 188.8.131.52/24. we use 184.108.40.206 as our public IP, and that is what the MX IP is.
In order to get to the internet though I have to use IP 220.127.116.11 with next hop 18.104.22.168.
So on the external switch i have a vlan 10 configured with ip address 22.214.171.124 255.255.255.0.
switchport access vlan 10
ip address 126.96.36.199
ip route 0.0.0.0 0.0.0.0 188.8.131.52
ip route 184.108.40.206 255.255.255.255.0 220.127.116.11
My question is, can I do this on just the Meraki or do I have to have an external switch to do the routing.
Are you using the public IP block for servers behind the MX?
I use MX84 and we have a block of public IP but the next hop IP is within that IP address range.
You can have your MX with 18.104.22.168 and "gateway" or next-hop 22.214.171.124. Use 1:1 NAT or 1:Many to accept 126.96.36.199/24 address and point them to where you want.
I am not sure if that is what you're looking for or if you are required to use 188.8.131.52 on the MX. But the above proposed solution does remove the external switch.
To simplify things for a moment, if you were to put the IP settings directly on a computer and connect it to the ISP. Would you need to put the 184.108.40.206 or 220.127.116.11?
Typically the ISP will give you a /30 to use on your firewall (MX internet interface). So maybe that is the 18.104.22.168 with gateway 22.214.171.124? Then they usually bind the external IP block(s) to that IP range. So the 126.96.36.199/24 would bind to the 188.8.131.52 address above. So you could assign/NAT those addresses 1:1 directly on the MX. Example 184.108.40.206 could NAT to something on your internal LAN 192.168.1.2.
But I suppose it is possible that some ISPs do stuff differently/strangely.
I can put either 220.127.116.11 or 18.104.22.168, but as far as I know I really should keep it 22.214.171.124. I will investigate a little bit to be sure, thank you for the response.
Yes you can put this directly on the Meraki - however - all outbound requests from the Meraki would now appear to come from 126.96.36.199, and VPNs would need to use that as well.
Your public IP block could still be used for NATing to internal hosts and servers.
Thank you Philip, I guess that it what I was looking for. I do not want to change my public IP, all web traffic should come from 188.8.131.52, if there is no way to accomplish that then I will keep the external switch in place. Thank you everyone for the responses.