03-19-2018 08:10 AM
Hi Guys,
I have set up a vMX on a VPC in AWS. The vMX is able to communicate with another VPC through peering. However, if i were to have a site to site VPN configured for the vMX to a physical MX. The clients behind the physical MX were not able to reach the VPC. According to AWS, VPC peering doesn't support L3 routing information which is why i wasn't able to reach the VPC.
Any recommendation? This is my setup. MX -> VMX -> VPC
Also what is the best way to connect up my VMX to multiple VPC across multiple AWS accounts.
03-19-2018 12:36 PM
With the VMX, it will route all subnets listed under:
Security Appliance/Site-to-site-VPN/VPN Settings/Local Networks
Here is a screen shot of one I do serving multiple availability zones.
If you have two VPC's peering with each other you should be able to get to the remote VPC. You will need the remote VPN routes listed here, and on the remote VPC you will need routes to get back to your remote VPN subnets.
You can not connect a vMX across multiple VPCs across multiple accounts. You need multiple vMXs.
03-19-2018 05:47 PM
Hey PhilipDAth,
That is exactly what i did. So basically in my setup of MX -> VMX -> VPC. My VMX was able to reach both MX and VPC. However, my MX wasn't able to reach the VPC. So according to Meraki support, they are able to see my ping going out. Just that the VPC attached via peering to the VMX does not have a route back.
AWS tech confirmed that the VPC is not supposed to pass routes which it doesn't know about. Thus setting of default route wouldn't work. They are recommending the usage of transit VPC.
04-18-2018 08:25 AM
Did you ever get this figured out? I have a client with 3 VPCs, all in the same AWS account, and I'm wondering if I install a single vMX in one of the VPCs, if I can connect other subnets in the other 2 VPCs back through the SDWAN of the single vMX via VPC Peering.
Has anybody done this?
04-18-2018 11:34 AM
The whole point of a vPC is that it provides a virtualised network environment. Their is no communication at all between vPCs. Because their is no communication between them, a vMX is one can not possible talk to the others.
If you are instead referring to networks that belong to a single vPC, then yes, you can do that.
04-18-2018 12:22 PM
There is actually communication allowed between VPCs. See https://docs.aws.amazon.com/AmazonVPC/latest/PeeringGuide/Welcome.html. I'm just wondering whether I can use this type of peering to send traffic from all VPCs destined to the branch network across the Auto-VPN/SDWAN to flow through the one vMX. It sounds as if that is not the case though, which means this client will have to have a vMX for each VPC. Bummer!
07-12-2018 12:37 PM
Here's our plan that we are about to test:
We'll have our vMX living in a VPC that will connect to branch office Meraki hardware via Auto-VPN
We'll have our vMX connect to other VPCs via IPSec/AWS VPN Gateways in each VPC.
Anyone else doing this type of thing?
07-12-2018 12:51 PM
We have not tried this yet, but we did try to connect a branch MX back through a vMX to a peered VPC and that did not work. So, our case looked like this:
MX ><AUTOVPN><vMX/VPC-A><VPC PEERING><VPC-B
I can ping VPC-B from the vMX and vice versa, but when I ping from the MX to VPC-B, I get no return traffic. With doing a packet capture, I can see the ping hit the vMX and be sent to VPC-B, but I never get return traffic to the vMX that would be passed to the MX. Essentially, the VPC peering does not allow routing across the peering connection.
We are getting ready to try exactly what you are proposing. Let me know how it goes for you!
07-25-2018 02:40 PM
Has anyone tried this?
office MX(s)> <AUTOVPN> <vMX in VPC-A> <IPsec Tunnel> <AWS Managed VPN in VPC-B
I can't really find much on this approach, but in theory it should work...Even with tunnels from the vMX to multiple VPCs right?
07-25-2018 06:11 PM
We just recently tried this and it does NOT work. The reason is that the vMX (and any MX for that matter) will not route from a Meraki Auto-VPN connection to a 3rd party site to site connection. So you can stand it up, but you can't route traffic from the branch MX to the AWS VPC connected by the AWS VPN. We have modified our architecture so that we have a site-to-site VPN from every branch MX to the other AWS VPCs that we need to access. Not the best, but the only option.
07-26-2018 01:07 AM
So this is what i have gathered by far.
VPC peering does not pass external routes. As such peering other VPC to the vMX is not going to help.
Amazon is proposing a couple of things
- Transit VPC
- AWS direct connect
- Cisco CSR router.
I believe the above-mentioned solution is the only way out unless somehow xMX supports NAT-ing.
08-02-2018 01:36 PM
08-08-2018 09:10 AM
I am looking to setup something similar.
LAN -> physical MX -> vMX -> out my vpc.
Does the vMX need two interfaces or will the public subnet interface land the VPN and then decrypt and out the same interface out to the iGW?
08-08-2018 12:45 PM
The vMX can only have one interface.
The decrypted traffic goes to the default gateway - which is usually the VPC.
01-17-2019 03:52 PM
I have the exact same problem! Ohh... the irony, considering I was the PM who launched MX 8 years ago...lol!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide