This tutorial illustrates how to use Express Connect to connect two VPCs under the same account.


The following are two VPCs used in this tutorial.
Configuration VPC1 VPC2
VPC ID vpc-12345678 vpc-87654321
Region China (Beijing) China (Hangzhou)
VSwitch CIDR block


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.

    • 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 (Beijing).

    • VPC ID: Select the VPC to be connected. In this tutorial, select VPC1.

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

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

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

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

  • Receiver router interface

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.

  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 Block Next Hop Type Description (VSwitch CIDR block of VPC2) Router interface of VPC1 Route table configuration of VPC1 (VSwitch CIDR block of VPC1) Router interface of VPC2 Route table configuration of VPC2