Connect VPN Connections to another VPC
- Log in to the VPN Connections console.
- Create a VPN gateway for VPC1 and a VPN tunnel to connect the on-premises data center to VPC1.
- Log in to the Peering console.
- Create a peering connection between VPC1 and VPC2.
- 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. Set Extra Network of the VPN tunnel to the VPC2 CIDR block (10.5.0.0/16).
- Access the Route page in the VPC console.
- Create a route for 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 Connections
- Access the Route page.
- Create a route for 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.
- Create a route for 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.