Help Center/ Virtual Private Cloud/ Help Panel/ VPC Peering Connections/ VPC Peering Connection Usage Guidelines
Updated on 2025-06-10 GMT+08:00

VPC Peering Connection Usage Guidelines

A VPC peering connection is a networking connection between two VPCs in the same region and enables them to communicate with each other. The following describes common usage examples of VPC peering connections.
Table 1 VPC peering connection usage examples

VPC and Subnet CIDR Block

VPC Peering Connection Description

Configuration Example

  • VPC CIDR blocks do not overlap.
  • Subnet CIDR blocks of VPCs do not overlap.

You can create VPC peering connections to connect entire CIDR blocks of VPCs. Then, all resources in the VPCs can communicate with each other.

Using a VPC Peering Connection to Connect Two VPCs

  • VPC CIDR blocks overlap.
  • Some subnet CIDR blocks overlap.
You can create VPC peering connections to connect specific subnets or ECSs from different VPCs.
  • To connect specific subnets from two VPCs, the subnet CIDR blocks cannot overlap.
  • To connect specific ECSs from two VPCs, each ECS must have a unique private IP address.
  • VPC CIDR blocks overlap.
  • All subnet CIDR blocks overlap.

VPC peering connections are not usable.

Unsupported VPC Peering Configurations