5

For example, A company acquired other company that has existing AWS Cloud running production workloads and is configured with custom VPC (not the default) and the VPC IP ranges somehow overlaps with each other. The plan is to merge the two networks through VPC peering but we all know that VPC peering won't let us do that because it has overlapping ranges. Our question is that what will be the recommended workaround in order to get make to two VPC connected (if possible through VPC peering only) to each other and NOTE that both VPC running production workloads.

Edcel Cabrera Vista
  • 1,087
  • 1
  • 9
  • 29

1 Answers1

2

You are correct, peering two VPC's with overlapping CIDR ranges is not supported by AWS (nor IPv4 in general). https://docs.aws.amazon.com/vpc/latest/peering/invalid-peering-configurations.html#overlapping-cidr

A VPC gateway might do what you are looking for.

Another possible alternative for this is using a NAT gateway be acceptable? VPC1 <-> NAT <-> VPC2. Set the address of the NAT to an address that does not overlap with either VPC's and use it (the NAT) as a type of translating gateway between the two VPCs?

David J Eddy
  • 1,999
  • 1
  • 19
  • 37
  • NAT will be set any from the two VPC? – Edcel Cabrera Vista Jan 07 '19 at 07:54
  • Not sure what you are asking here. Could you clarify please. – David J Eddy Jan 07 '19 at 16:01
  • Using an EC2 instance as a managed NAT gateway, routing traffic from the local VPC to the NAT instance/s when requests match a prefix list of destinations (be sure to disable source/destination checks). Managed egress NAT Gateway, VPC peering, Transit Gateway, et al. does not support such configurations. – David J Eddy Dec 07 '22 at 21:56