After a VPC peering connection is created, the local and peer VPCs cannot communicate with each other.
The issues here are described in order of how likely they are to occur.
Figure 1 Troubleshooting process

No. | Possible Cause | Solution |
|---|---|---|
1 | Overlapping CIDR blocks of local and peer VPCs
| |
2 | Incorrect route configuration for the local and peer VPCs
| |
3 | Incorrect network configuration
| Refer to Incorrect Network Configuration. |
4 | ECS network failure | Refer to ECS Network Failure. |
If the CIDR blocks of VPCs connected by a VPC peering connection overlap, the connection may not take effect due to route conflicts.
Scenario | Description | Solution |
|---|---|---|
VPCs with overlapping CIDR blocks also include subnets that overlap. | As shown in Figure 2, the CIDR blocks of VPC-A and VPC-B overlap, and all their subnets overlap.
| VPC-A and VPC-B cannot be connected using a VPC peering connection. Replan the network. |
Two VPCs have overlapping CIDR blocks but some of their subnets do not overlap. | As shown in Figure 3, the CIDR blocks of VPC-A and VPC-B overlap, and some of their subnets overlap.
|
|
Figure 2 Networking diagram (IPv4)

Figure 3 Networking diagram (IPv4)

If CIDR blocks of VPCs overlap and some of their subnets overlap, you can create a VPC peering connection between their subnets with non-overlapping CIDR blocks. Figure 4 shows the networking diagram of connecting Subnet-A02 and Subnet-B02. Table 3 describes the routes required.
Figure 4 Networking diagram (IPv4)

Route Table | Destination | Next Hop | Description |
|---|---|---|---|
VPC-A route table | 10.0.2.0/24 | Peering-AB | Add a route with the CIDR block of Subnet-B02 as the destination and Peering-AB as the next hop. |
VPC-B route table | 10.0.1.0/24 | Peering-AB | Add a route with the CIDR block of Subnet-A02 as the destination and Peering-AB as the next hop. |
After a VPC peering connection is created, check whether routes are added to the route tables of the local and peer VPCs by referring to Viewing Routes Configured for a VPC Peering Connection. Table 4 lists the items that you need to check.
Item | Solution |
|---|---|
Check whether routes are added to the route tables of the local and peer VPCs. | If routes are not added, add routes by referring to: |
Check the destinations of routes added to the route tables of the local and peer VPCs.
| If the route destination is incorrect, change it. For details, see Modifying Routes Configured for a VPC Peering Connection. |
Destinations of the routes overlap with that configured for Direct Connect or VPN connections. | Check whether any of the VPCs connected by the VPC peering connection also has a VPN or Direct Connect connection connected. If they do, check the destinations of their routes. If the destinations of the routes overlap, the VPC peering connection does not take effect. In this case, replan the network connection. |
If the firewall blocks traffic, configure the firewall to allow inbound traffic.
If the network ACL rules deny inbound traffic, configure rules to allow the traffic.
If an ECS has two network interfaces (eth0 and eth1):
Command format:
Run the following commands:
If the network communication is normal, the routes of the network interfaces are correctly configured.
Otherwise, you need to configure policy-based routing for the ECS with multiple network interfaces by referring to How Do I Configure Policy-Based Routes for an ECS with Multiple Network Interfaces?
The ECS details page is displayed.
The Virtual Private Cloud page is displayed.
The Subnets page is displayed.
The subnet details page is displayed.
ping Subnet gateway address
Example command: ping 172.17.0.1