Cloud Enterprise Network (CEN) automatically learns the routes of the network instances that are attached to a CEN instance. If the destination CIDR blocks of the routes to be learned overlap with an existing one, the routes conflict with each other. After you enable overlapping routing, CEN can learn routes with destination CIDR blocks that have the same prefix but different subnet mask lengths.
Before overlapping routing is enabled
For example, virtual private cloud (VPC) A attached to a CEN instance has a custom route whose destination CIDR block is 192.168.1.0/24 and the next hop is Elastic Compute Service (ECS) instance 1 in VPC A. In this scenario, VPC A cannot learn the routes whose destination CIDR block is 192.168.1.0/x (1 ≤ x ≤ 32) from other network instances attached to the CEN instance.
Similarly, if VPC A learns a route whose destination CIDR block is 192.168.1.0/24 from the CEN instance, you cannot create a custom route whose destination CIDR block is 192.168.1.0/x (1 ≤ x ≤ 32) for VPC A. VPC A cannot learn other routes whose destination CIDR block is 192.168.1.0/x (1 ≤ x ≤ 32) from other network instances attached to the CEN instance.
After overlapping routing is enabled
After you enable overlapping routing, CEN can learn routes with destination CIDR blocks that have the same prefix but different subnet mask lengths.
For example, VPC A attached to a CEN instance has a custom route whose destination CIDR block is 192.168.1.0/24 and the next hop is ECS instance 1 in VPC A. In this scenario, VPC A can learn the routes whose destination CIDR block is 192.168.0.0/16 from other network instances attached to the CEN instance.
The routes whose destination CIDR blocks are 192.168.1.0/24 and 192.168.0.0/16 can be learned at the same time by CEN. CEN learns the routes that match the longest prefix.
Procedure
To enable overlapping routing, perform the following steps: