Connect to another VPC through VPN Connections

Last updated:2020-06-09 15:43:48

Process of connecting to another VPC through VPN Connections

Connect VPN to another VPC

  1. In the VPN Connections console, create a VPN gateway in VPC1 and a VPN tunnel to connect the on-premises data center to VPC1.
  2. In the VPC console, create a peering connection between VPC1 and VPC2.
  3. On the data center side, create a route. The destination of the route is the VPC2 CIDR block (such as 10.5.0.0/16) and the next hop is the VPN tunnel.
  4. In the VPN Connections console, set Extra Network of the VPN tunnel to the VPC2 CIDR block (10.5.0.0/16).
  5. In the VPC console, create a route in VPC1. The destination of the route is the VPC2 CIDR block (10.5.0.0/16) and the next hop is the peering connection between VPC1 and VPC2. (Currently, when you create a peering connection, a route pointing to the CIDR block of the peer VPC is automatically created. You can determine whether to skip this step based on actual situation.)

Connect another VPC to VPN

  1. In the VPC console, create a route in VPC2. The destination of the route is the data center CIDR block (such as 10.3.0.0/16), and the next hop is the peering connection between VPC1 and VPC2.
  2. In the VPC console, create a route in VPC1. The destination of the route is the data center CIDR block (such as 10.3.0.0/16), and the next hop is the VPN tunnel.

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈