R3166-R3206-HP High-End Firewalls VPN Configuration Guide-6PW101
34
[FirewallB-ipsec-proposal-tran1] esp authentication-algorithm sha1
[FirewallB-ipsec-proposal-tran1] quit
# Create IKE peer peer.
[FirewallB] ike peer peer
# Set the pre-shared key.
[FirewallB-ike-peer-peer] pre-shared-key abcde
# Specify the IP address of the peer security gateway.
[FirewallB-ike-peer-peer] remote-address 1.1.1.1
[FirewallB-ike-peer-peer] quit
# Create an IPsec policy that uses IKE negotiation.
[FirewallB] ipsec policy use1 10 isakmp
# Reference ACL 3101 to identify the protected traffic.
[FirewallB-ipsec-policy-isakmp-use1-10] security acl 3101
# Reference IPsec proposal tran1.
[FirewallB-ipsec-policy-isakmp-use1-10] proposal tran1
# Reference IKE peer peer.
[FirewallB-ipsec-policy-isakmp-use1-10] ike-peer peer
[FirewallB-ipsec-policy-isakmp-use1-10] quit
# Assign an IP address to interface GigabitEthernet 0/2.
[FirewallB] interface GigabitEthernet 0/2
[FirewallB-GigabitEthernet 0/2] ip address 10.1.2.1 255.255.255.0
[FirewallB-GigabitEthernet 0/2] quit
# Assign an IP address to interface GigabitEthernet 0/1.
[FirewallB] interface GigabitEthernet 0/1
[FirewallB-GigabitEthernet 0/1] ip address 2.2.2.2 255.255.255.0
# Apply the IPsec policy to interface GigabitEthernet 0/1.
[FirewallB-GigabitEthernet 0/1] ipsec policy use1
# Configure a static route to subnet 10.1.1.0/24.
[FirewallB] ip route-static 10.1.1.0 255.255.255.0 1.1.1.1
3. Verify the configuration
# Check the IKE proposal configuration.
[FirewallA] display ike proposal
priority authentication authentication encryption Diffie-Hellman duration
method algorithm algorithm group (seconds)
---------------------------------------------------------------------------
10 PRE_SHARED MD5 DES_CBC MODP_768 5000
default PRE_SHARED SHA DES_CBC MODP_768 86400
[FirewallA] display ike proposal
priority authentication authentication encryption Diffie-Hellman duration
method algorithm algorithm group (seconds)
---------------------------------------------------------------------------
default PRE_SHARED SHA DES_CBC MODP_768 86400