Issue
If multiple virtual private clouds (VPCs) are attached to the same Cloud Enterprise Network (CEN) instance, and the CIDR blocks of the VPCs overlap with each other, the Elastic Compute Service (ECS) instances in the VPCs cannot communicate with each other through CEN.
Solutions
Use the following solutions to address this issue:
Use a NAT gateway. For more information, see Allow VPCs with overlapping CIDR blocks to access each other by using NAT gateways.
Perform the following operations to delete vSwitches with overlapping CIDR blocks:
Migrate the ECS instances and database instances from the vSwitch to be deleted to the new vSwitch.
Change the vSwitch to which the ECS instances belong. For more information, see Change a private IP address.
ImportantYou can change the private IP addresses of only ECS instances that are in the same VPC and zone. The ECS instances must be disabled. If you want to change the VPC of an ECS instance, see Change the VPC of an ECS instance.
If you want to change the vSwitch of an ApsaraDB RDS instance, see Change the VPC and vSwitch for an ApsaraDB RDS for MySQL instance.
Delete the vSwitch with an overlapping CIDR block.
Before you delete a vSwitch, make sure that the following requirements are met:
All the resources deployed in the vSwitch are deleted. For example, delete the following types of resource from the vSwitch: ECS, Classic Load Balancer (CLB), ApsaraDB RDS, ApsaraDB for MongoDB, PolarDB, Elasticsearch, Time Series Database (TSDB), ApsaraDB for HBase, ApsaraDB for ClickHouse, Tablestore, Container Registry, Elastic High Performance Computing (E-HPC), Database Backup (DBS), and File Storage NAS (NAS). For more information, see the relevant documentation.
If the vSwitch that you want to delete is associated with SNAT entries, high-availability virtual IP addresses (HAVIPs), custom route tables, or network ACLs, disassociate the vSwitch from them. For more information, see VPC documentation.
Applicable scope
CEN