Establish an intranet connection between VPCs in different regions

Last Updated: Jan 08, 2018

This tutorial illustrates how to use Express Connect to connect two VPCs in different regions.

Note: If the two VPCs belong to a same account, the connection procedure is the same no matter the VPCs are in the same region or not.

The following are two VPCs used in this tutorial.

ConfigurationVPC-1VPC-2
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

Prerequisite

Make sure that the CIDR blocks of the VPCs or VSwitches to be interconnected do not conflict with each other.

Step 1: Create router interfaces

Follow these steps to create router interfaces:

  1. Log on to the Express Connect console.

  2. In the left-side navigation pane, click VPC Connection > Router Interface.

  3. In the upper-right corner, click Create Router Interface.

  4. Select router interface configurations and complete the payment.

    This tutorial uses the following configurations. For more information, see Create a router interface.

    • Billing method: Select Subscription.
    • Scenario: Select VPC Interconnection.

    • Router Creation: Select Create Initiator and Receiver. The system sets the router interface of the local side as the initiator, and automatically connects the initiator to the receiver.

    • Local Region: Select the region where the VPC is located. In this tutorial, select China North 2 (Beijing).

    • VPC ID: Select the VPC to be connected. In this tutorial, select the ID of VPC-1.

    • Peer Region: Select the region where the peer VPC is located. In this tutorial, select China East 1 (Hangzhou).

    • Peer VPC ID: Select the peer VPC to be connected. In this tutorial, select the ID of VPC-2.

    • Specification: Select the specification for the initiator. In this tutorial, select Large 1.

      Create a router interface

After the router interfaces are created, the system automatically initiates the connection between the router interfaces.

Initiator

initiator

Receiver

receiver

Step 2: Configure the routes

After creating the router interfaces, follow these steps to configure routes for the two VPCs:

  1. On the Router Interface page, find the target route interface and click Route Configuration.

    Configuration

  2. On the VRouters page, click Add Route Entry in the upper-right corner.

  3. In the displayed dialog box, configure the route entry as follows:

    • Destination CIDR Block: The CIDR Block of the peer VPC or VSwitch.

    • Next Hop Type: Select Router Interface.

    • Router Interface: Select General Routing and select a router interface.

  4. Repeat the preceding steps to configure the route for the VPC to which the other router interface belongs.

    In this tutorial, the route configurations are as follows:

    Destination CIDR BlockNext Hop TypeDescription
    172.16.100.0/24 (VSwitch CIDR block of VPC2)Router interface of VPC1Route configuration of VPC1
    192.168.100.0/24 (VSwitch CIDR block of VPC1)Router interface of VPC2Route configuration of VPC2
Thank you! We've received your feedback.