408
[Hub1-Tunnel1] ip address 192.168.1.1 255.255.255.0
[Hub1-Tunnel1] vam client Hub1Group1
[Hub1-Tunnel1] ospf network-type
broadcast
[Hub1-Tunnel1] source gigabitethernet 2/0/1
[Hub1-Tunnel1] tunnel protection ipsec profile abc
[Hub1-Tunnel1] quit
# Configure UDP-mode IPv4 ADVPN tunnel interface tunnel2.
[Hub1] interface tunnel2 mode advpn udp
[Hub1-Tunnel2] ip address 192.168.0.1 255.255.255.0
[Hub1-Tunnel2] vam client Hub1Group0
[Hub1-Tunnel2] ospf network-type broadcast
[Hub1-Tunnel2] source gigabitethernet 2/0/1
[Hub1-Tunnel2] tunnel protection ipsec profile abc
[Hub1-Tunnel2] quit
Configuring Hub 2
1. Configure IP addresses for the interfaces. (Details not shown.)
2. Configure the VAM client:
# Create VAM client Hub2Group0.
<Hub2> system-view
[Hub2] vam client name Hub2Group0
# Specify ADVPN domain abc for the VAM client.
[Hub2-vam-client-Hub2Group0] advpn-domain abc
# Set the pre-shared key to 123456.
[Hub2-vam-client-Hub2Group0] pre-shared-key simple 123456
# Set both the username and password to hub2.
[Hub2-vam-client-Hub2Group0] user hub2 password simple hub2
# Specify the primary and secondary VAM servers.
[Hub2-vam-client-Hub2Group0] server primary ip-address 1.0.0.11
[Hub2-vam-client-Hub2Group0] server secondary ip-address 1.0.0.12
# Enable the VAM client.
[Hub2-vam-client-Hub2Group0] client enable
[Hub2-vam-client-Hub2Group0] quit
# Create VAM client Hub2Group1.
[Hub2] vam client name Hub2Group1
# Specify ADVPN domain abc for the VAM client.
[Hub2-vam-client-Hub2Group1] advpn-domain abc
# Set the pre-shared key to 123456.
[Hub2-vam-client-Hub2Group1] pre-shared-key simple 123456
# Set both the username and password to hub2.
[Hub2-vam-client-Hub2Group1] user Hub2 password simple Hub2
# Specify the primary and secondary VAM servers.
[Hub2-vam-client-Hub2Group1] server primary ip-address 1.0.0.11
[Hub2-vam-client-Hub2Group1] server secondary ip-address 1.0.0.12
# Enable the VAM client.
[Hub2-vam-client-Hub2Group1] client enable