×
Community Blog How to Connect Two VPCs in the Same and Different Regions

How to Connect Two VPCs in the Same and Different Regions

In the CEN console, we can see the transit routers establishing the connection between two VPCs in the same region of Kuala Lumpur and a heterogenous ...

In this blog we discuss on how to connect ECS instances included in Virtual Private Cloud (VPC) instances within the same and different regions. The tutorial walks through with the latest terms, conditions and interfaces of Alibaba Cloud console. This takes the below steps to follow.

  1. Create VPCs in same and different regions
  2. Create ECS instances and connect them with the VPCs created
  3. Use Express connect to establish connection between VPCs created within same and different regions.

Step 1: Create VPCs in same and different regions
For an example scenario we have created two VPCs in Kuala Lumpur region and one VPC in Bangkok region. Firstly, the VPCs are created in from each zone of Kuala Lumpur region as shown below.
blogpic
Another VPC is created in Bangkok region.
blogpic
Now we have 2 VPCs in two different zones of Kuala Lumpur region and one VPC in Bangkok region’s only zone.

Step 2: Create ECS instances and connect with the VPCs created
We have created two ECS instances in Kuala Lumpur and connect each instance from two different zones available. These instances are configured to get included in the VPCs we created in the corresponding zones.
blogpic
ECS instances in Kuala Lumpur zones
blogpic
ECS Instance in Bangkok region
Scenario 1: Connect VPCs in the same region
To connect VPCs created in the same region, express connect is used. Enter into the console of express connect and click on “VPC to VPC” in the left pane of options available.
blogpic
The region is set to Kuala Lumpur where we have already created two VPCs with an ECS instance connected to each of them. Click on Create CEN (Recommended). This will lead to the console of Cloud Enterprise Network (CEN).
blogpic
Click on Create CEN Instance button. Fill the details corresponding to the CEN to create.
blogpic
Description doesn’t allow whitespaces. Enter according to the condition and click ‘OK’.
blogpic
Click on the view details link and it will show the CEN instance created.
blogpic
Now click on the “Create Transit Router” in that page and enter the VPCs corresponding to that region. Here the source and destination routers are in Kuala Lumpur. Click on Activate Transit Routers to activate the connection for CEN.
blogpic
Then click Activate.
blogpic
After the transit router is activated, enter a CIDR block in the interface and click OK.
blogpic
Now the CEN instance is created.
blogpic
After creating the CEN, click on “Create Connection”.
blogpic
Choose the network type as VPC as the VPCs are in the same region of Kuala Lumpur. Select current owner ID as both VPCs are created under the same account.
blogpic
Now click ‘OK’.
blogpic
Thus, the CEN connectivity is established between VPCs created in the same region.
Scenario 2: Connect VPCs from different regions
Click on create more connections.
blogpic
Select “Inter-region Connection”. Now we need to specify the VPCs in Bangkok as source and the VPC in Kuala Lumpur as destination.
blogpic
Now click on “Purchase Bandwidth Plan” and select the required parameters.
blogpic
Click on “Buy Now.
blogpic
Click to agree and click Pay and then click Subscribe. Now in the CEN console enter the VPC parameters of the one created in Bangkok region.
blogpic
Now click OK.
blogpic
In the CEN console, we can see the transit routers establishing the connection between two VPCs in the same region of Kuala Lumpur and a heterogenous connectivity of one VPC from Bangkok and another from Kuala Lumpur.

0 0 0
Share on

ferdinjoe

20 posts | 117 followers

You may also like