297
# Specify encryption and authentication methods.
[RouterB-ipsec-proposal-tran1] esp encryption-algorithm des
[RouterB-ipsec-proposal-tran1] esp authentication-algorithm sha1
[RouterB-ipsec-proposal-tran1] quit
# Create IKE peer
peer
.
[RouterB] ike peer peer
# Set the pre-shared key.
[RouterB-ike-peer-peer] pre-shared-key abcde
# Specify the IP address of the peer security gateway.
[RouterB-ike-peer-peer] remote-address 1.1.1.1
[RouterB-ike-peer-peer] quit
# Create an IPsec policy that uses IKE negotiation.
[RouterB] ipsec policy use1 10 isakmp
# Reference ACL 3101 to identify the protected traffic.
[RouterB-ipsec-policy-isakmp-use1-10] security acl 3101
# Reference IPsec proposal
tran1
.
[RouterB-ipsec-policy-isakmp-use1-10] proposal tran1
# Reference IKE peer
peer
.
[RouterB-ipsec-policy-isakmp-use1-10] ike-peer peer
[RouterB-ipsec-policy-isakmp-use1-10] quit
# Assign an IP address to interface GigabitEthernet 1/0/2.
[RouterB] interface gigabitethernet 1/0/2
[RouterB-GigabitEthernet1/0/2] ip address 10.1.2.1 255.255.255.0
[RouterB-GigabitEthernet1/0/2] quit
# Assign an IP address to interface GigabitEthernet 1/0/1.
[RouterB] interface gigabitethernet 1/0/1
[RouterB-GigabitEthernet1/0/1] ip address 2.2.2.2 255.255.255.0
# Apply the IPsec policy to interface GigabitEthernet 1/0/1.
[RouterB-GigabitEthernet1/0/1] ipsec policy use1
# Configure a static route to subnet 10.1.1.0/24.
[RouterB] ip route-static 10.1.1.0 255.255.255.0 gigabitethernet 1/0/1
3.
Verify the configuration.
# Check the IKE proposal configuration.
[RouterA] 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
[RouterA] display ike proposal