Help Center/ Virtual Private Network/ FAQs/ Networking and Application Scenarios/ How Do I Enable Communications Between Two VPCs and an On-premises Network?
Updated on 2023-10-20 GMT+08:00

How Do I Enable Communications Between Two VPCs and an On-premises Network?

Network Topology

IDC–VPC 1–VPC 2

IDC indicates an on-premises data center. A VPN connection is established between VPC 1 and the IDC.

Procedure

  1. Check whether the two VPCs are in the same region.
    • If so, use a VPC peering connection or Cloud Connect connection to connect the two VPCs. Such a connection is free of charge.
    • If not, use a Cloud Connect connection to connect the two VPCs. You need to pay for the Cloud Connect bandwidth.
  2. Establish a VPN connection between the IDC and one VPC (VPC 1 in this example).

    In the on-premises data center, set subnets of VPC 1 and VPC 2 as remote subnets. The local subnet of VPC 1 must contain the subnet connected through a VPC peering connection or Cloud Connect connection. The subnet route of the VPC peering connection or Cloud Connect connection needs to destine for the on-premises subnet.