Cloud Enterprise Network (CEN) helps you build a high-quality network environment. CEN provides a simplified networking method to build a hybrid cloud with a scale and communication capability at the enterprise level. This topic describes how to build a hybrid cloud by combining leased lines, VPN gateways, and Smart Access Gateway (SAG) instances.
Network topology
The following network topology is used in this example:
- A company has deployed data centers in the China (Beijing), China (Shanghai), China (Hangzhou), and China (Guangzhou) regions.
- In addition, the company has created virtual private clouds (VPCs) in the China (Beijing), China (Shanghai), China (Hangzhou), and China (Shenzhen) regions.
- The data centers in China (Beijing) and China (Shanghai) are connected to Alibaba Cloud through leased lines. The virtual border routers (VBRs) of the leased lines are attached to a CEN instance.
- The data center in China (Hangzhou) is connected to the VPC in China (Hangzhou) through a VPN gateway.
- The data center in China (Guangzhou) is connected to Alibaba Cloud through an SAG instance. The Cloud Connect Network (CCN) instance to which the SAG instance belongs is attached to the CEN instance.
- The VPCs of the company in China (Beijing), China (Shanghai), China (Shenzhen), and China (Hangzhou) are attached to the CEN instance.
Subnetting
To build a hybrid cloud, make sure that the CIDR blocks to be connected do not overlap
with each other. The following table describes the CIDR blocks in this example.
Network | CIDR block |
---|---|
Data center in China (Hangzhou) | 10.1.1.0/24 |
Data center in China (Guangzhou) | 10.1.2.0/24 |
Data center in China (Beijing) | 10.1.3.0/24 |
Data center in China (Shanghai) | 10.1.4.0/24 |
VPC in China (Beijing) | 192.168.1.0/24 |
VPC in China (Shenzhen) | 192.168.2.0/24 |
VPC in China (Shanghai) | 192.168.3.0/24 |
VPC in China (Hangzhou) | 192.168.4.0/24 |
Services for connecting data centers to Alibaba Cloud
The data centers are connected to Alibaba Cloud in the following ways:
Connect the data centers in China (Beijing) and China (Shanghai) to Alibaba Cloud through leased lines
Procedure
Connect the data center in China (Hangzhou) to Alibaba Cloud through a VPN gateway
Procedure:
Connect the data center in China (Guangzhou) to Alibaba Cloud through an SAG instance
Procedure:
Connect the data centers in all regions
Repeat the preceding procedures to connect all data centers through CEN.
- The data centers in China (Beijing) and China (Shanghai) are connected to Alibaba Cloud through BGP leased lines. Therefore, attach the VBRs to the CEN instance.
- The data center in China (Hangzhou) is connected to Alibaba Cloud through a VPN gateway. Therefore, attach the VPC for which the VPN gateway is created to the CEN instance.
- The data center in China (Guangzhou) is connected to Alibaba Cloud through an SAG instance. Therefore, attach the CCN instance that is associated with the SAG instance to the CEN instance.
The CEN instance dynamically advertises the routes from the attached network instances
to avoid route overlapping. This builds a hybrid cloud through which the data centers
and the attached network instances can communicate with each other.
For example, the following tables describe the route tables of the CPE in China (Beijing),
the VBR in China (Beijing), and the VPC in China (Shenzhen).
Destination CIDR block | Next hop | Route type |
---|---|---|
10.1.1.0/24 | BGP peer: VBR in China (Beijing) | BGP route |
10.1.2.0/24 | BGP peer: VBR in China (Beijing) | BGP route |
10.1.4.0/24 | BGP peer: VBR in China (Beijing) | BGP route |
192.168.1.0/24 | BGP peer: VBR in China (Beijing) | BGP route |
192.168.2.0/24 | BGP peer: VBR in China (Beijing) | BGP route |
192.168.3.0/24 | BGP peer: VBR in China (Beijing) | BGP route |
192.168.4.0/24 | BGP peer: VBR in China (Beijing) | BGP route |
Destination CIDR block | Next hop | Route type |
---|---|---|
10.1.3.0/24 | BGP peer: CPE in China (Beijing) | BGP route |
10.1.1.0/24 | VPC in China (Hangzhou) | CEN route |
10.1.2.0/24 | CCN | CEN route |
10.1.4.0/24 | VBR in China (Shanghai) | CEN route |
192.168.1.0/24 | VPC in China (Beijing) | CEN route |
192.168.2.0/24 | VPC in China (Shenzhen) | CEN route |
192.168.3.0/24 | VPC in China (Shanghai) | CEN route |
192.168.4.0/24 | VPC in China (Hangzhou) | CEN route |
Destination CIDR block | Next hop | Route type |
---|---|---|
10.1.1.0/24 | VPC in China (Hangzhou) | CEN route |
10.1.2.0/24 | CCN | CEN route |
10.1.3.0/24 | VBR in China (Beijing) | CEN route |
10.1.4.0/24 | VBR in China (Shanghai) | CEN route |
192.168.1.0/24 | VPC in China (Beijing) | CEN route |
192.168.3.0/24 | VPC in China (Shanghai) | CEN route |
192.168.4.0/24 | VPC in China (Hangzhou) | CEN route |