This topic provides answers to some commonly asked questions about virtual private cloud (VPC) communication.

In the same VPC, can ECS instances that belong to different vSwitches communicate with each other?

Yes. In the same VPC, if allowed by security group rules, Elastic Compute Service (ECS) instances can communicate with each other regardless of whether they belong to the same vSwitch.

Can I connect different VPCs?

Yes. Different VPCs are logically isolated from each other. However, you can connect different VPCs through Express Connect, VPN Gateway, or Cloud Enterprise Network (CEN). For more information, see How do I choose a proper VPC solution.

Do VPCs support leased lines?

Yes. You can connect a VPC to an on-premises data center through leased lines. For more information, see Create a dedicated connection over an Express Connect circuit.

Do VPCs provide the VPN feature?

Yes. For more information, see VPN gateways.

Can a VPC access Internet services?

Yes. You can allow a VPC to access Internet services by using one of the following methods:

  • Assign public IP addresses to the cloud resources in the VPC
  • Associate elastic IP addresses (EIPs) with the cloud resources in the VPC
  • Configure a NAT gateway

For more information, see Select a product to gain access to the Internet.

Can I access cloud resources in a VPC over the Internet?

Yes. You can access cloud resources in a VPC over the Internet by using one of the following methods:

  • Assign public IP addresses to the cloud resources in the VPC
  • Associate elastic IP addresses (EIPs) with the cloud resources in the VPC
  • Configure a NAT gateway
  • Configure a Server Load Balancer (SLB) instance

For more information, see Select a product to gain access to the Internet.

Can a VPC directly communicate with a classic network?

No. However, you can use the following method to assign public IP addresses to the ECS instances in the VPC. This way, the ECS instances in the VPC can communicate with the classic network over the Internet. For more information, see Select a product to gain access to the Internet.

Alternatively, you can use the ClassicLink feature to establish low-latency and high-speed connections between ECS instances in the VPC and the classic network. For more information, see Overview.