![HP JH299A Скачать руководство пользователя страница 69](http://html.mh-extra.com/html/hp/jh299a/jh299a_configuration-manual_162851069.webp)
60
[Hub2-vam-client-hub2]server primary ip-address 100.1.1.100
# Set the pre-shared key to
123456
.
[Hub2-vam-client-hub2]pre-shared-key simple 123456
# Enable the VAM client.
[Hub2-vam-client-hub2]client enable
d.
Configure Spoke 1:
# Create a VAM client named
Spoke1
.
<Spoke1>system-view
[Spoke1]vam client name Spoke1
# Specify ADVPN domain
abc
for the VAM client.
[Spoke1-vam-client-Spoke1]advpn-domain abc
# Specify the VAM server.
[Spoke1-vam-client-Spoke1]server primary ip-address 100.1.1.100
# Set the pre-shared key to
123456
.
[Spoke1-vam-client-Spoke1]pre-shared-key simple 123456
# Enable the VAM client.
[Spoke1-vam-client-Spoke1]client enable
[Spoke1-vam-client-Spoke1]quit
e.
Configure Spoke 2:
# Create a VAM client named
Spoke2
.
<Spoke2>system-view
[Spoke2]vam client name Spoke2
# Specify ADVPN domain
abc
for the VAM client.
[Spoke2-vam-client-Spoke2]advpn-domain abc
# Specify the VAM server.
[Spoke2-vam-client-Spoke2]server primary ip-address 100.1.1.100
# Set the pre-shared key to
123456
.
[Spoke2-vam-client-Spoke2]pre-shared-key simple 123456
# Enable the VAM client.
[Spoke2-vam-client-Spoke2]client enable
[Spoke2-vam-client-Spoke2]quit
f.
Configure ADVPN tunnel interfaces:
# On Hub 1, configure GRE-mode IPv4 ADVPN tunnel interface
tunnel1
.
[Hub1]interface tunnel 1 mode advpn gre
[Hub1-Tunnel1]ip address 192.168.0.1 24
[Hub1-Tunnel1]ospf network-type p2mp
[Hub1-Tunnel1]source gigabitethernet 1/0/1
[Hub1-Tunnel1]vam client hub1
[Hub1-Tunnel1]quit
# On Hub 2, configure GRE-mode IPv4 ADVPN tunnel interface
tunnel1
.
[Hub2]interface tunnel 1 mode advpn gre
[Hub2-Tunnel1]ip address 192.168.0.2 24
[Hub2-Tunnel1]ospf network-type p2mp
[Hub2-Tunnel1]source gigabitethernet 1/0/1
[Hub2-Tunnel1]vam client hub2
[Hub2-Tunnel1]quit
# On Spoke 1, configure GRE-mode IPv4 ADVPN tunnel interface
tunnel1
.