R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)

392
{ Hub2—The private address is 192.168.0.2, the public address is 1.0.0.1 (after NAT), and the
source port number of ADVPN packets is 4002 (after NAT).
[PrimaryServer-vam-server-domain-abc-hub-group-0] hub private-address 192.168.0.1
public-address 1.0.0.1 advpn-port 4001
[PrimaryServer-vam-server-domain-abc-hub-group-0] hub private-address 192.168.0.2
public-address 1.0.0.1 advpn-port 4002
# Specify a spoke private network.
[PrimaryServer-vam-server-domain-abc-hub-group-0] spoke private-address network
192.168.0.0 255.255.255.0
[PrimaryServer-vam-server-domain-abc-hub-group-0] quit
# Set the pre-shared key to 123456.
[PrimaryServer-vam-server-domain-abc] pre-shared-key simple 123456
# Set the authentication mode to CHAP.
[PrimaryServer-vam-server-domain-abc] authentication-method chap
# Enable the VAM server for the ADVPN domain.
[PrimaryServer-vam-server-domain-abc] server enable
[PrimaryServer-vam-server-domain-abc] quit
# Configure a default route.
[PrimaryServer] ip route-static 0.0.0.0 0 10.0.0.1
Configuring the secondary VAM server
# Configure the secondary VAM server in the same way that the primary server is configured. (Details
not shown.)
Configuring Hub 1
1. Configure IP addresses for the interfaces. (Details not shown.)
2. Configure the VAM client:
# Create VAM client hub1.
<Hub1> system-view
[Hub1] vam client name Hub1
# Specify ADVPN domain abc for the VAM client.
[Hub1-vam-client-Hub1] advpn-domain abc
# Set the pre-shared key to 123456.
[Hub1-vam-client-Hub1] pre-shared-key simple 123456
# Set the username and password to hub1
[Hub1-vam-client-Hub1] user hub1 password simple hub1
# Specify the primary VAM server: the IP address is 1.0.0.4 (after NAT) and the port number is
4001 (after NAT).
[Hub1-vam-client-Hub1] server primary ip-address 1.0.0.4 port 4001
# Specify the secondary VAM server: the IP address is 1.0.0.4 (after NAT) and the port number is
4002 (after NAT).
[Hub1-vam-client-Hub1] server secondary ip-address 1.0.0.4 port 4002
# Enable the VAM client.
[Hub1-vam-client-Hub1] client enable
[Hub1-vam-client-Hub1] quit
3. Configure OSPF: