385
[Hub2-ospf-1] area 0
[Hub2-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.0.255
[Hub2-ospf-1-area-0.0.0.0] quit
[Hub2-ospf-1] area 1
[Hub2-ospf-1-area-0.0.0.1] network 192.168.1.0 0.0.0.255
[Hub2-ospf-1-area-0.0.0.1] quit
[Hub2-ospf-1] quit
5.
Configure ADVPN tunnels:
# Configure UDP-mode IPv4 ADVPN tunnel interface
tunnel1
.
[Hub2] interface tunnel 1 mode advpn gre
[Hub2-Tunnel1] ip address 192.168.0.2 255.255.255.0
[Hub2-Tunnel1] vam client Hub2
[Hub2-Tunnel1] ospf network-type broadcast
[Hub2-Tunnel1] source gigabitethernet 2/0/1
[Hub2-Tunnel1] tunnel protection ipsec profile abc
[Hub2-Tunnel1] undo shutdown
[Hub2-Tunnel1] quit
# Configure UDP-mode IPv4 ADVPN tunnel interface
tunnel2
.
[Hub2] interface tunnel2 mode advpn udp
[Hub2-Tunnel2] ip address 192.168.0.2 255.255.255.0
[Hub2-Tunnel2] vam client Hub2Group0
[Hub2-Tunnel2] ospf network-type broadcast
[Hub2-Tunnel2] source gigabitethernet 2/0/1
[Hub2-Tunnel2] tunnel protection ipsec profile abc
[Hub2-Tunnel2] undo shutdown
[Hub2-Tunnel2] quit
Configuring Hub 3
1.
Configure IP addresses for the interfaces. (Details not shown.)
2.
Configure the VAM client:
# Create VAM client
Hub3Group0
.
<Hub3> system-view
[Hub3] vam client name Hub3Group0
# Specify ADVPN domain
abc
for the VAM client.
[Hub3-vam-client-Hub3Group0] advpn-domain abc
# Set the pre-shared key to
123456
.
[Hub3-vam-client-Hub3Group0] pre-shared-key simple 123456
# Set both the username and password to
hub3
.
[Hub3-vam-client-Hub3Group0] user hub3 password simple hub3
# 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
Hub3Group1
.
[Hub3] vam client name Hub3Group1
# Specify ADVPN domain
abc
for the VAM client.