F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices VPN Configuration Guide-6PW100
202
[FirewallB-acl-adv-3101] quit
# Configure a static route to subnet 10.4.4.0/24.
[FirewallB] ip route-static 10.4.4.0 255.255.255.0 1.1.1.1
# Create IPsec transform set tran1.
[FirewallB] ipsec transform-set tran1
# Set the packet encapsulation mode to tunnel.
[FirewallB-ipsec-transform-set-tran1] encapsulation-mode tunnel
# Use ESP as the security protocol.
[FirewallB-ipsec-transform-set-tran1] transform esp
# Use DES as the encryption algorithm and SHA1-HMAC-96 as the authentication algorithm.
[FirewallB-ipsec-transform-set-tran1] esp encryption-algorithm des
[FirewallB-ipsec-transform-set-tran1] esp authentication-algorithm sha1
[FirewallB-ipsec-transform-set-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.
[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 transform set tran1.
[FirewallB-ipsec-policy-isakmp-use1-10] transform-set tran1
# Reference IKE peer peer.
[FirewallB-ipsec-policy-isakmp-use1-10] ike-peer peer
[FirewallB-ipsec-policy-isakmp-use1-10] quit
# Apply IPsec policy use1 to interface GigabitEthernet 0/1.
[FirewallB] interface gigabitethernet 0/1
[FirewallB-GigabitEthernet0/1] ipsec policy use1
4. Verify the configuration:
# Send traffic from subnet 10.5.5.0/24 to subnet 10.4.4.0/24, or from subnet 10.4.4.0/24 to
10.5.5.0/24. IKE negotiation is triggered to establish IPsec SAs between Firewall A and Firewall
B.
# Display the routing table on Firewall A.
[FirewallA] display ip routing-table
Routing Tables: Public
Destinations : 8 Routes : 8
Destination/Mask Proto Pre Cost NextHop Interface
1.1.0.0/16 Direct 0 0 1.1.1.1 GE0/1
1.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0