Operation Guide
Scenario
Figure 1 shows the typical networking where a VPN gateway on Huawei Cloud connects to a Huawei access router (AR) in an on-premises data center in static routing mode.
In this scenario, the AR router has only one public IP address. VPN connections need to be created between the public IP address of the firewall and the active and standby EIPs of the Huawei Cloud VPN gateway.
Data Plan
Category |
Item |
Data |
---|---|---|
VPC |
Subnet that needs to access the on-premises data center |
|
VPN gateway |
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 |
EIP |
EIPs are automatically generated when you buy them. By default, a VPN gateway uses two EIPs. In this example, the EIPs are as follows:
|
|
VPN connection |
Tunnel interface address |
This address is used by a VPN gateway to establish an IPsec tunnel with a customer gateway. At the two ends of the IPsec tunnel, the configured local and remote tunnel interface addresses must be reversed.
|
On-premises data center |
Subnet that needs to access the VPC |
172.16.0.0/16 |
AR router |
Public IP address |
This public IP address is assigned by a carrier. In this example, the public IP address is: 1.1.1.1 |
Tunnel interface address |
|
|
IKE and IPsec policies |
PSK |
Test@123 |
IKE policy |
|
|
IPsec policy |
|
Operation Process
Figure 2 shows the process of using the VPN service to enable communication between the data center and VPC.
No. |
Configuration Interface |
Step |
Description |
---|---|---|---|
1 |
Management console |
Bind two EIPs to the VPN gateway. If you have purchased EIPs, you can directly bind them to the VPN gateway. |
|
2 |
Configure the AR router as the customer gateway. |
||
3 |
Create a VPN connection between the active EIP of the VPN gateway and the customer gateway. |
||
4 |
Create a VPN connection between the standby EIP of the VPN gateway and the customer gateway. It is recommended that the routing mode, PSK, IKE policy, and IPsec policy settings of the two VPN connections be the same. |
||
5 |
CLI of the AR router |
|
|
6 |
- |
Run the ping command to verify network connectivity. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.