This tutorial illustrates how to use Express Connect to connect two VPCs under the same account.
|Region||China (Beijing)||China (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|
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:
- Log on to the Express Connect console.
- In the left-side navigation pane, click .
- In the upper-right corner, click Create Router Interface.
- 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.
- 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:
- On the Router Interface page, find the target route interface and click Route Configuration.
- On the VRouters page, click Add Route Entry in the upper-right corner.
- 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.
- 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 172.16.100.0/24 (VSwitch CIDR block of VPC2) Router interface of VPC1 Route table configuration of VPC1 192.168.100.0/24 (VSwitch CIDR block of VPC1) Router interface of VPC2 Route table configuration of VPC2