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.
|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|
Make sure that the CIDR blocks of the VPCs or VSwitches to be interconnected do not conflict with each other.
Follow these steps to create router interfaces:
Log on to the Express Connect console.
In the left-side navigation pane, click VPC Connection > Router Interface.
In the upper-right corner, click Create Router Interface.
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.
After the router interfaces are created, the system automatically initiates the connection between the router interfaces.
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 configuration of VPC1 192.168.100.0/24 (VSwitch CIDR block of VPC1) Router interface of VPC2 Route configuration of VPC2