VPC Peering Connection Usage Examples
A VPC peering connection is a networking connection between two VPCs in the same region and enables them to communicate. Table 1 lists different scenarios of using VPC peering connections.
Location |
CIDR Block |
Description |
Example |
---|---|---|---|
VPCs in the same region |
|
You can create VPC peering connections to connect entire CIDR blocks of VPCs. Then, all resources in the VPCs can communicate with each other. |
|
VPCs in the same region |
|
You can create VPC peering connections to connect specific subnets or ECSs from different VPCs.
|
Using a VPC Peering Connection to Connect Subnets in Two VPCs |
VPCs in the same region |
|
VPC peering connections are not usable. |
A VPC peering connection can only connect VPCs in the same region. If your VPCs are in different regions, use Cloud Connect.
Alternatively, you can use enterprise routers to connect VPCs in the same region. Enterprise Router is more suitable for complex networking that needs to connect multiple VPCs. With enterprise routers, you do not have to create a large number of VPC peering connections or add too many routes. This makes your network topology simpler and more scalable.
All route tables in a VPC can have a maximum of 1,000 routes. If you want to create VPC peering connections to connect multiple VPCs, consider this restriction when planning the networking.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot