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

397
servers both use the default source UDP port number 18000. The UDP port number after NAT is
4001 for the primary server, and is 4002 for the secondary server.
<NAT4> system-view
[NAT4] interface gigabitethernet 1/0/1
[NAT4-GigabitEthernet1/0/1] nat server protocol udp global current-interface 4001
inside 10.0.0.3 18000
[NAT4-GigabitEthernet1/0/1] nat server protocol udp global current-interface 4002
inside 10.0.0.4 18000
Verifying the configuration
# Display the address mapping information for all VAM clients registered with the primary VAM server.
[PrimaryServer] display vam server address-map
ADVPN domain name: 1
Total private address mappings: 4
Group Private address Public address Type NAT Holding time
0 192.168.0.1 1.0.0.1 Hub Yes 0H 52M 7S
0 192.168.0.2 1.0.0.1 Hub Yes 0H 47M 31S
0 192.168.0.3 1.0.0.2 Spoke Yes 0H 28M 25S
0 192.168.0.4 1.0.0.3 Spoke Yes 0H 19M 15S
# Display the address mapping information for all VAM clients registered with the secondary VAM
server.
[SecondaryServer] display vam server address-map
ADVPN domain name: 1
Total private address mappings: 4
Group Private address Public address Type NAT Holding time
0 192.168.0.1 1.0.0.1 Hub Yes 0H 52M 7S
0 192.168.0.2 1.0.0.1 Hub Yes 0H 47M 31S
0 192.168.0.3 1.0.0.2 Spoke Yes 0H 28M 25S
0 192.168.0.4 1.0.0.3 Spoke Yes 0H 19M 15S
The above output shows that Hub 1, Hub 2, Spoke 1, Spoke 2, and Spoke 3 all have registered their
address mapping information with the VAM servers.
# Display the ADVPN tunnel information for Hub 1.
[Hub1] display advpn session
Interface : Tunnel1
Number of sessions: 3
Private address Public address Port Type State Holding time
192.168.0.2 1.0.0.1 4002 H-H Success 0H 46M 8S
192.168.0.3 1.0.0.2 2001 H-S Success 0H 27M 27S
192.168.0.4 1.0.0.3 2001 H-S Success 0H 18M 18S
The output shows that Hub 1 has established a permanent tunnel to Hub 2, Spoke 1, and Spoke 2.
The ADVPN tunnel information for Hub 2 is similar to that of Hub 1.
# Display the ADVPN tunnel information for Spoke 1.
[Spoke1] display advpn session
Interface : Tunnel1
Number of sessions: 2
Private address Public address Port Type State Holding time
192.168.0.1 1.0.0.1 4001 S-H Success 0H 46M 8S