![HP JH299A Скачать руководство пользователя страница 68](http://html.mh-extra.com/html/hp/jh299a/jh299a_configuration-manual_162851068.webp)
59
Device
Interface
IP address
Device
Interface
IP address
Hub 2
Loop0
2.2.2.2/32
Configuration procedure
1.
Assign an IP address and subnet mask to each interface, as shown in
. (Details not
shown.)
2.
Configure ADVPN:
a.
Configure the VAM server:
# Create an ADVPN domain named
abc
.
<Server>system-view
[Server]vam server advpn-domain abc id 1
# Set the pre-shared key to
123456
.
[Server-vam-server-domain-abc]pre-shared-key simple 123456
# Configure the VAM server not to authenticate VAM clients.
[Server-vam-server-domain-abc]authentication-method none
# Enable the VAM server.
[Server-vam-server-domain-abc]server enable
# Create hub group 0.
[Server-vam-server-domain-abc]hub-group 0
# Specify private IPv4 addresses for hubs in hub group 0.
[Server-vam-server-domain-abc-hub-group-0]hub private-address 192.168.0.1
[Server-vam-server-domain-abc-hub-group-0]hub private-address 102.168.0.2
# Specify a private IPv4 address range for spokes in hub group 0.
[Server-vam-server-domain-abc-hub-group-0]spoke private-address range
192.168.0.0 192.168.0.255
[Server-vam-server-domain-abc-hub-group-0]quit
[Server-vam-server-domain-abc]quit
b.
Configure Hub 1:
# Create a VAM client named
hub1
.
<Hub1>system-view
[Hub1]vam client name hub1
# Specify ADVPN domain
abc
for the VAM client.
[Hub1-vam-client-hub1]advpn-domain abc
# Specify the VAM server.
[Hub1-vam-client-hub1]server primary ip-address 100.1.1.100
# Set the pre-shared key to
123456
.
[Hub1-vam-client-hub1]pre-shared-key simple 123456
# Enable the VAM client.
[Hub1-vam-client-hub1]client enable
c.
Configure Hub 2:
# Create a VAM client named
hub2
.
<Hub2>system-view
[Hub2]vam client name hub2
# Specify ADVPN domain
abc
for the VAM client.
[Hub2-vam-client-hub2]advpn-domain abc
# Specify the VAM server.