Updated on 2025-05-14 GMT+08:00

Operation Guide

Scenario

Figure 1 shows the typical networking where a VPN gateway connects to an access router (AR) of Huawei in static routing mode.

Figure 1 Typical networking diagram

In this scenario, the AR router has only one IP address, and the VPN gateway uses the active-active mode. A VPN connection needs to be created between each of the two active EIPs of the VPN gateway and the IP address of the AR router.

Limitations and Constraints

VPN and AR routers support different authentication and encryption algorithms. When creating connections, ensure that the policy settings at both ends are the same.

Data Plan

Table 1 Data plan

Category

Item

Example Value for the AR Router

Example Value for the Huawei Cloud Side

VPC

Subnet

172.16.0.0/16

  • 192.168.0.0/24
  • 192.168.1.0/24

VPN gateway

Gateway IP address

1.1.1.1 (IP address of the uplink public network interface GE0/0/8 on the AR router)

  • Active EIP: 1.1.1.2
  • Active EIP 2: 2.2.2.2

Interconnection subnet

-

192.168.2.0/24

VPN connection

Tunnel interface addresses under Connection 1's Configuration

  • Local tunnel interface address: 169.254.70.2/30
  • Customer tunnel interface address: 169.254.70.1/30

Tunnel interface addresses under Connection 2's Configuration

  • Local tunnel interface address: 169.254.71.2/30
  • Customer tunnel interface address: 169.254.71.1/30

IKE policy

  • IKE version: IKEv2
  • Authentication algorithm: SHA2-256
  • Encryption algorithm: AES-128
  • DH algorithm: group 14
  • Lifetime (s): 86400
  • Local ID: IP address
  • Peer ID: IP address

IPsec policy

  • Authentication algorithm: SHA2-256
  • Encryption algorithm: AES-128
  • PFS: DH group 14
  • Transfer protocol: ESP
  • Lifetime (s): 3600

Operation Process

Figure 2 shows the process of using the VPN service to enable communication between the data center and VPC.

Figure 2 Operation process
Table 2 Operation process description

No.

Configuration Interface

Step

Description

1

Management console

Create a VPN gateway.

Bind two EIPs to the VPN gateway.

If you have purchased EIPs, you can directly bind them to the VPN gateway.

2

Create a customer gateway.

Configure the AR router as the customer gateway.

3

Create VPN connections.

  • Create two VPN connections between the VPN gateway (active EIP and active EIP 2) and the customer gateway.
  • The PSK, IKE policy, and IPsec policy settings of connections must be the same as those of the AR router.

4

Command-line interface (CLI) of the AR router

Configure the AR router.

  • The local and remote tunnel interface addresses configured on the AR router must be the same as the customer and local tunnel interface addresses configured on the VPN console, respectively.
  • The connection mode, PSK, IKE policy, and IPsec policy settings on the AR router must be same as those of VPN connections configured on the VPN console.

5

-

Verify network connectivity.

Run the ping command to verify network connectivity.