Procedure
Prerequisites
- Cloud side
- A VPC has been created. For details about how to create a VPC, see Creating a VPC and Subnet.
- Security group rules have been configured for the VPC, and ECSs can communicate with other devices on the cloud. For details about how to configure security group rules, see Security Group Rules.
- An enterprise router has been created if you want to use it to connect to a VPN gateway. For details, see the enterprise router documentation.
- Data center side
- IPsec has been configured on the VPN device in the on-premises data center. For details, see Administrator Guide.
Procedure
- Log in to the management console.
- Click in the upper left corner of the page, and choose .
- Configure a VPN gateway.
- Choose Buy VPN Gateway. and click
- Set parameters as prompted.
Table 1 only describes the key parameters for creating a VPN gateway.
Table 1 Description of VPN gateway parameters Parameter
Description
Value
Billing Mode
Select Yearly/Monthly.
Yearly/Monthly
Name
Name of a VPN gateway.
vpngw-001
Network Type
Select Public network.
Public network
Associate With
Select VPC.
If the VPN gateway is associated with an enterprise router, select Enterprise Router.
VPC
Enterprise Router
Specify the associated enterprise router only when Associate With is set to Enterprise Router.
er-001
VPC
VPC to which the interconnection subnet belongs.
When Associate With is set to Enterprise Router, the associated enterprise router can be located in the VPC or not.
vpc-001(192.168.0.0/16)
Interconnection Subnet
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.2.0/24
Local Subnet
This parameter is available only when Associate With is set to VPC.
192.168.0.0/24,192.168.1.0/24
Specification
Select Professional 1 and Access via a non-fixed IP address.
Professional 1: non-fixed IP address
HA Mode
Select Active-active.
Active-active
Active EIP
EIP 1 used by the VPN gateway to access the on-premises data center.
1.1.1.2
Active EIP 2
EIP 2 used by the VPN gateway to access the on-premises data center.
2.2.2.2
- Configure a customer gateway.
- Choose Create Customer Gateway. and click
- Set parameters as prompted.
Table 2 only describes the key parameters for creating a customer gateway.
- Configure VPN connections.
- Choose Buy VPN Connection. and click
- Set parameters for VPN connection 1 and click Submit.
Table 3 only describes the key parameters for creating a VPN connection.
Table 3 Parameter settings for VPN connection 1 Parameter
Description
Value
Name
Name of a VPN connection.
vpn-001
VPN Gateway
VPN gateway for which the VPN connection is created.
vpngw-001
Gateway IP Address
Active EIP bound to the VPN gateway.
1.1.1.2
Customer Gateway
Name of a customer gateway.
cgw
VPN Type
Select Policy template.
Policy template
Customer Subnet
Customer-side subnet that needs to access the VPC on the cloud through VPN connections.
- A customer subnet cannot be included in any local subnet or any subnet of the VPC to which the VPN gateway is attached.
- Reserved VPC CIDR blocks such as 100.64.0.0/10 and 214.0.0.0/8 cannot be used as customer subnets.
172.16.0.0/16
PSK, Confirm PSK
The value must be the same as the PSK configured on the customer gateway device.
Test@123
Policy Template
The policy settings must be the same as those on the customer gateway device.
Default
- Create VPN connection 2.
For VPN connection 2, you are advised to use the same parameter settings as VPN connection 1, except the parameters listed in the following table.
Table 4 Parameter settings for VPN connection 2 Parameter
Description
Value
Name
Name of a VPN connection.
vpn-002
Gateway IP Address
Active EIP 2 bound to the VPN gateway.
2.2.2.2
- Configure the customer gateway device.
The configuration procedures may vary according to the type of the customer gateway device. For details, see Administrator Guide.
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