To connect your on-premises data center or private network to your ECSs in a VPC, you need to create a VPN gateway before creating a VPN connection.
The recommended networking varies according to the number of customer gateway IP addresses, as described in Table 1.
Number of Customer Gateway IP Addresses | Recommended Networking | Description |
|---|---|---|
1 |
| It is recommended that the VPN gateway uses the active-active mode. In this case, one VPN connection group is used. |
2 |
| It is recommended that the VPN gateway uses the active/standby mode. In this case, two VPN connection groups are used. |
in the upper left corner and select the desired region and project.
in the upper left corner, and choose .Table 2 lists the VPN gateway parameters.
Parameter | Description | Example Value |
|---|---|---|
Region | For low network latency and fast resource access, select the region nearest to your target users. Resources cannot be shared across regions. | Select a region as required. |
AZ | An AZ is a geographic location with independent power supply and network facilities in a region. AZs in the same VPC are interconnected through private networks and are physically isolated. You are advised to select an AZ type based on the AZs where resources in the VPC are located. The following types of AZs are supported:
| Set this parameter based on the site requirements. |
Name | Name of a VPN gateway. The value can contain only letters, digits, underscores (_), hyphens (-), and periods (.). | vpngw-001 |
Network Type |
| Public network |
Associate With |
| VPC |
VPC | This parameter is available only when Associate With is set to VPC. Select a VPC. | vpc-001(192.168.0.0/16) |
Enterprise Router | This parameter is available only when Associate With is set to Enterprise Router. Select an enterprise router. | er-001 |
Access VPC | This parameter is available only when Associate With is set to Enterprise Router. If a VPN gateway needs to connect to different VPCs in the southbound and northbound directions, set the VPC in the northbound direction as the access VPC. | vpc-001(192.168.0.0/16) |
Access Subnet | This parameter is available only when Associate With is set to Enterprise Router. An access subnet is used by the VPN gateway to connect to the Internet. | subnet-001(192.168.0.0/24) |
Gateway IP Address | This parameter is available only when Associate With is set to Enterprise Router and Network Type is set to Private network.
| Auto-assigned IP address |
Interconnection Subnet | This parameter is available only when Associate With is set to VPC. This subnet is used for communication between the VPN gateway and VPC. Ensure that the selected interconnection subnet has four or more assignable IP addresses. | 192.168.66.0/24 |
Local Subnet | This parameter is available only when Associate With is set to VPC. Specify the VPC subnets with which your on-premises data center needs to communicate through the customer gateway.
| 192.168.1.0/24,192.168.2.0/24 |
BGP ASN | BGP ASN of the VPN gateway, which must be different from that of the customer gateway. The BGP ASN ranges from 1 to 4294967295. | 64512 |
HA Mode |
| Active-active |
Specification | Two options are available: Professional 1 and Professional 2. Three options are available: Basic, Professional 1 and Professional 2. | Professional 1 |
Shared Bandwidth |
| Disabled |
EIP Type | Select the type of the EIP to be bound to the VPN gateway. | Set this parameter based on the site requirements. |
Bandwidth Name | This parameter is available only when Network Type is set to Public network. Specify the name of the EIP bandwidth. | Vpngw-bandwidth2 |
Active EIP | EIP used by the VPN gateway to communicate with a customer gateway.
| Create Now |
Bandwidth (Mbit/s) | This parameter is available only when Network Type is set to Public network. Bandwidth of the EIP, in Mbit/s.
| 10 Mbit/s |
Active EIP 2 | This parameter is available only when the Network Type is set to Public network and HA Mode is set to Active-active. A VPN gateway needs to be bound to a group of EIPs (active EIP and active EIP 2). You can plan the bandwidth for each EIP. The EIPs can share bandwidth with the EIPs of other network services. NOTE: When shared bandwidth is used, you can only create an EIP now, and the EIP cannot be changed after being created. | Create Now |
Standby EIP | This parameter is available only when the Network Type is set to Public network and HA Mode is set to Active/Standby. A VPN gateway needs to be bound to a group of EIPs (active EIP and standby EIP). You can plan the bandwidth for each EIP. The EIPs can share bandwidth with the EIPs of other network services. NOTE: When Billing Mode of the VPN gateway is Pay-per-use and the backup EIP is billed by traffic, you are advised to configure alarm rules on Cloud Eye to monitor the backup EIP. This prevents traffic fee overrun caused by VPN connection switching due to a fault of the active VPN connection. For details about how to configure alarm rules on Cloud Eye, see the Elastic IP User Guide. | Create Now |
Enterprise Project | Enterprise project to which the VPN belongs. An enterprise project facilitates project-level management and grouping of cloud resources and users. The default project is default. | default |
Access VPC |
If a VPN gateway needs to connect to different VPCs in the southbound and northbound directions, set the VPC in the northbound direction as the access VPC. The VPC in the southbound direction is the VPC associated with the VPN gateway. | Same as the associated VPC |
Access Subnet |
By default, a VPN gateway uses the interconnection subnet to connect to the associated VPC. Set this parameter when another subnet needs to be used. | Same as the interconnection subnet |
Gateway IP Address | This parameter is available only when Associate With is set to VPC and Network Type is set to Private network.
| Auto-assigned IP address |
Advanced Settings > Tags | Tag of a VPN resource. A tag consists of a key and a value. A maximum of 20 tags can be added. You can select predefined tags or customize tags. To view predefined tags, click View predefined tags. | - |
If the VPN gateway fails to be created, you can view the failure information in the upper right corner of the VPN gateway list.