379 
[Spoke1-Tunnel1] ospf dr-priority 0 
[Spoke1-Tunnel1] source gigabitethernet 2/0/1 
[Spoke1-Tunnel1] tunnel protection ipsec profile abc 
[Spoke1-Tunnel1] quit 
Configuring Spoke 2 
1.  Configure IP addresses for the interfaces. (Details not shown.) 
2.  Configure the VAM client: 
# Create VAM client Spoke2. 
<Spoke2> system-view 
[Spoke2] vam client name Spoke2 
# Specify ADVPN domain abc for the VAM client. 
[Spoke2-vam-client-Spoke2] advpn-domain abc 
# Set the pre-shared key to 123456. 
[Spoke2-vam-client-Spoke2] pre-shared-key simple 123456 
# Set both the username and password to spoke2. 
[Spoke2-vam-client-Spoke2] user spoke2 password simple spoke2 
# Specify the primary and secondary VAM servers. 
[Spoke2-vam-client-Spoke2] server primary ip-address 1.0.0.11 
[Spoke2-vam-client-Spoke2] server secondary ip-address 1.0.0.12 
# Enable the VAM client. 
[Spoke2-vam-client-Spoke2] client enable 
[Spoke2-vam-client-Spoke2] quit 
3.  Configure an IPsec profile: 
# Configure IKE. 
[Spoke2] ike keychain abc 
[Spoke2-ike-keychain-abc] pre-shared-key address 0.0.0.0 0.0.0.0 key simple 123456 
[Spoke2-ike-keychain-abc] quit 
[Spoke2] ike profile abc 
[Spoke2-ike-profile-abc] keychain abc 
[Spoke2-ike-profile-abc] quit 
# Configure the IPsec profile. 
[Spoke2] ipsec transform-set abc 
[Spoke2-ipsec-transform-set-abc] encapsulation-mode transport 
[Spoke2-ipsec-transform-set-abc] esp encryption-algorithm des-cbc 
[Spoke2-ipsec-transform-set-abc] esp authentication-algorithm sha1 
[Spoke2-ipsec-transform-set-abc] quit 
[Spoke2] ipsec profile abc isakmp 
[Spoke2-ipsec-profile-isakmp-abc] transform-set abc 
[Spoke2-ipsec-profile-isakmp-abc] ike-profile abc 
[Spoke2-ipsec-profile-isakmp-abc] quit 
4.  Configure OSPF to advertise private networks. 
[Spoke2] ospf 1 
[Spoke2-ospf-1] area 0 
[Spoke2-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.0.255 
[Spoke2-ospf-1-area-0.0.0.0] network 192.168.2.0 0.0.0.255 
[Spoke2-ospf-1-area-0.0.0.0] quit 
[Spoke2-ospf-1] quit