R2511-HP MSR Router Series Security Configuration Guide(V5)

194
# Configure an IKE peer named btoa. As the remote peer obtains the IP address automatically, set
the IKE negotiation mode to aggressive.
[RouterB] ike peer btoa
[RouterB-ike-peer-btoa] exchange-mode aggressive
[RouterB-ike-peer-btoa] pre-shared-key simple aabb
[RouterB-ike-peer-btoa] id-type name
[RouterB-ike-peer-btoa] remote-name routera
[RouterB-ike-peer-btoa] quit
# Create an IPsec transform set named method1. This IPsec transform set uses the default settings:
the security protocol of ESP, the encryption algorithm of DES, and the authentication algorithm of
MD5.
[RouterB] ipsec transform-set method1
[RouterB-ipsec-transform-set-method1] transform esp
[RouterB-ipsec-transform-set-method1] esp encryption-algorithm des
[RouterB-ipsec-transform-set-method1] esp authentication-algorithm md5
[RouterB-ipsec-transform-set-method1] quit
# Create an IPsec profile named btoa.
[RouterB] ipsec profile btoa
# Configure the IPsec profile to reference the IKE peer.
[RouterB-ipsec-profile-btoa] ike-peer btoa
# Configure the IPsec profile to reference the IPsec transform set method1.
[RouterB-ipsec-profile-btoa] transform-set method1
[RouterB-ipsec-profile-btoa] quit
# Create tunnel interface Tunnel 1. This interface will be used to protect the data flows between
Router B and Router A. As the public IP address of the remote peer is not known, you do not need
to configure the destination address on the tunnel interface.
[RouterB] interface tunnel 1
# Assign IPv4 address 10.1.1.2/24 to tunnel interface Tunnel 1.
[RouterB–Tunnel1] ip address 10.1.1.2 24
# Set the tunnel mode of tunnel interface Tunnel 1 to IPsec over IPv4.
[RouterB–Tunnel1] tunnel-protocol ipsec ipv4
# Set the source interface of the tunnel to Serial 2/1 on Tunnel 1.
[RouterB–Tunnel1] source serial 2/1
# Apply IPsec profile btoa to tunnel interface Tunnel 1.
[RouterB–Tunnel1] ipsec profile btoa
[RouterB–Tunnel1] quit
# Configure a static route to Router A.
[RouterB] ip route-static 172.17.17.0 255.255.255.0 tunnel 1
3. Verify the configuration:
After the configuration, IKE negotiation is triggered to set up SAs when Serial 2/1 on Router A
complements the dial-up process. If IKE negotiation is successful and SAs are set up, the IPsec
tunnel between Router A and Router B is up, and provides protection for packets traveling through
it.
# Execute the display brief interface command on Router B. The output shows the link status of the
IPsec tunnel interface is up.
[RouterB] display interface tunnel 1 brief