Establish an intranet connection between VPCs in different regions

Last Updated: Dec 05, 2017

Application scenario

If you have two VPCs in different regions and you want the VPCs to communicate with each other, you can use Express Connect to establish an intranet connection between the VPCs. Express Connect enables private network communication between VPCs in any region, avoiding unstable public networks and reducing the risk of data theft during transmission.

This tutorial instructs you to build Express Connect between two VPCs in different regions, let’s take the following VPCs under the same account as example:

ConfigurationVPC-AVPC-B
VPC ID vpc-12345678 vpc-87654321
Region China North 2 (Beijing) China East 1 (Hangzhou)
VPC CIDR Block 192.168.0.0/16 172.16.0.0/12
VSwitch CIDR Block 192.168.100.0/24 172.16.100.0/24

Establish an intranet connection between VPCs in different regions

Procedure

Step 1: Create router interfaces

  1. Log on to Express Connect console.

  2. In the left-side navigation pane, choose Router Interface.

  3. Click Create Router Interface in the upper right corner, a purchase page appears.

  4. Complete the required information, the following are the settings used in this tutorial:

    • Select Subscription

    • Scenario: VPC Interconnection

    • Router Creation: Create Initiator and Receiver

    • Router Type: VRouter

    • Local Region: China North 2 (Beijing)

    • VPC ID: vpc-12345678(VPC-A)

    • Peer Region: China East 1

    • Peer Router Type: VRouter

    • Peer VPC ID: vpc-87654321(VPC-B)

    • Specification: Large 1

  5. Click Buy Now to activate the router interface.

  6. Check the router interfaces in the Router Interface List page.

    Create a router interface

Step 2: Configure route on each side

VPC-A

  1. Go to the Router Interface List page, choose region China North 2 (Beijing).

  2. Choose the router interface of VPC-A, select More > Route Configuration.

  3. Click Add Route Entry and complete the required information. The following are the settings used in this tutorial. For more details, refer to Configure a route.

    • Destination CIDR Block: The CIDR Block of peer VSwitch. In this example, enter 172.16.100.0/24.

    • Next Hop Type: Router Interface

    • Router Interface: Choose General Routing. In the drop-down list, choose the router interface serves as data outlet of the local router. In this example, choose the router interface of VPC-A.

  4. Click OK.

VPC-B

  1. Go to the Router Interface List page, choose region China East 1 (Hangzhou).

  2. Choose the peer router interface, select More > Route Configuration.

  3. Click Add Route Entry and complete the required information. The following are the settings used in this tutorial:

    • Destination CIDR Block: The CIDR Block of peer VSwitch. In this example, enter 192.168.100.0/24.

    • Next Hop Type: Router Interface

    • Router Interface: Choose General Routing. In the drop-down list, choose the router interface serves as data outlet of the local router. In this example, choose the router interface of VPC-B.

  4. Click OK.

Thank you! We've received your feedback.