Help Center/ Virtual Private Network/ FAQs/ FAQs - S2C Classic VPN/ General Questions/ What Are the Relationships Between a VPC, a VPN Gateway, and a VPN Connection?
Updated on 2025-02-05 GMT+08:00

What Are the Relationships Between a VPC, a VPN Gateway, and a VPN Connection?

When your on-premises data center needs to access ECSs in a VPC, you can create a VPN gateway to establish a VPN connection between your on-premises data center and the VPC.

  • VPC
    • A VPC is a private network on the cloud. Multiple VPCs can be created in the same region while they are isolated from each other. A VPC can be divided into multiple subnets.
    • You can use the VPN service to securely access ECSs in a VPC.
  • VPN gateway
    • A VPN gateway is created in a VPC and is the access point of a VPN connection. One VPC can have only one VPN gateway, whereas one VPN gateway can have multiple VPN connections.
    • With a VPN gateway, a secure, reliable, and encrypted connection can be established between a VPC and an on-premises data center or between VPCs in different regions.
  • VPN connection
    A VPN connection is created for a VPN gateway and connects a VPC to an on-premises data center (or a VPC in another region).

    The number of VPN connections is irrelevant to the number of local subnets or the number of remote subnets. It is only related to the number of on-premises data centers (or VPCs in other regions) to be connected to your VPC. The created VPN connections are displayed in the VPN connection list. You can also view the number of VPN connections created for each VPN gateway.