Cloud Enterprise Network (CEN) creates private connections between VPCs, enabling cross-VPC resource sharing over internal networks.
Connect two VPCs in the same region through CEN. The same approach scales to additional VPCs.
Example scenario
This example assumes two VPCs in the China (Hangzhou) region:
VPC1
IPv4 CIDR block: 10.0.0.0/16
vSwitch 1 in Zone J, CIDR block 10.0.0.0/24
vSwitch 2 in Zone K, CIDR block 10.0.1.0/24 (two zones for high availability)
ECS1 address: 10.0.0.1 (used to test connectivity)
VPC2
IPv4 CIDR block: 172.16.0.0/16
vSwitch 1 in Zone J, CIDR block 172.16.0.0/24
vSwitch 2 in Zone K, CIDR block 172.16.1.0/24
ECS2 address: 172.16.0.1
Connecting both VPCs to a CEN transit router enables private communication between them.
Ensure the CIDR blocks of the VPCs you want to connect do not overlap.
Procedure
Step 1: Create a CEN instance
Log on to the CEN console. In the left-side navigation pane, under CEN Instance, click Create CEN Instance.
On the Create CEN Instance page, enter
cen1for Name and click OK.When the message The CEN instance is created. appears, click View Details.
Step 2: Create a transit router
On the details page of the CEN instance, click Create Transit Router.
In the Create Transit Router panel, select China (Hangzhou) for the region, keep other parameters as default, and click OK.
When the message The transit router is created. appears, close the panel.
The transit router now appears on the CEN instance details page.
Step 3: Connect VPCs to the transit router
In the Actions column of the transit router, click Create Connection > Create Intra-Region Connection.
On the Create Intra-Region Connection page, configure the following parameters:
Set Network Type to VPC.
Enter
attach1for Attachment Name.Select
VPC1for Networks.
Keep other parameters as default and click OK.
NoteFor cross-zone high availability, the system selects vSwitches in both zones automatically. If your VPC has a vSwitch in only one zone, create at least one more in a different zone.
When the page displays The connection is created., VPC1 is connected to the transit router. Click Create More Connections, follow the same steps to connect
VPC2to the transit router, and set the Attachment Name toattach2.After you connect
VPC2to the transit router, click Return to the List.Click the Instance ID of the transit router in the China (Hangzhou) region to view the two VPC connections:
attach1andattach2.
Step 4: Test the connection
Ensure the security group rules for both ECS instances allow traffic between them. View security group rules and Add security group rules.
Log on to ECS1 and run ping to test connectivity to ECS2:
ping 172.16.0.1[root@iZbpxxxxxxxxxxxxxxxx~]# ping 172.16.0.1
PING 172.16.0.1 (172.16.0.1) 56(84) bytes of data.
64 bytes from 172.16.0.1: icmp_seq=1 ttl=63 time=0.298 ms
64 bytes from 172.16.0.1: icmp_seq=2 ttl=63 time=0.264 ms
64 bytes from 172.16.0.1: icmp_seq=3 ttl=63 time=0.270 ms
64 bytes from 172.16.0.1: icmp_seq=4 ttl=63 time=0.267 ms
64 bytes from 172.16.0.1: icmp_seq=5 ttl=63 time=0.254 ms
^C
--- 172.16.0.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.254/0.270/0.298/0.023 ms
[root@iZbxxxxxxxxxxxxxxxx~]#A successful ping confirms that VPC1 and VPC2 are connected.
Next steps
View the network topology of your CEN instance.
Use flow logs to analyze transit router traffic.