Router-A(cfg-ctypto-map)# match address 100
(apply the access list)
Router-A(cfg-ctypto-map)# set transform-set ts2
(apply the transform set)
Router-A(cfg-ctypto-map)# set peer 20.1.1.20
(Set remote peer address)
Router-A(cfg-ctypto-map)# exit
(Exit
from crypto map mode)
Router-A(config)#interface serial 1/0
Router-A(config-if)#crypto map
imap
(Apply crypto map on interface)
Router-A(config-if)#exit
(Exit from interface)
Configuration on Router B
Router-B(config)#interface serial 1/0
(Configure serial interface on Router B)
Router-B(config-if)#ip
address 20.1.1.20 255.0.0.0
(Assign IP address to serial interface on Router B)
Router-B(config-if)#exit
(Exit from Interface 1/0)
Router-B(config)#crypto isakmp policy 10
(10 is isakmp policy number)
Router-B(config-isakmp)#encryption des
(enable encryption des)
Router-B(config-isakmp)#hash md5
(enable
algorithm md5 for hashing)
Router-B(config-isakmp)#authentication pre-share
(enable Pre- shared method)
Router-B(config-isakmp)#group 2
(enable diffie-Helman group 2)
Router-B(config-isakmp)#exit
(Exit from crypto isakmp mode)
Router-B(config)#crypto isakmp key office address 20.1.1.10
(Here Key is "office" and 20.1.1.10 is router A Address).
Router-B(config)#access-list 100 permit ip host 20.1.1.20 host
20.1.1.10
(100 is access list number and 20.1.1.20 is source address and
20.1.1.10 is destination address.)
Router-B(config)#crypto
ipsec transform-set ts2 esp-des esp-md5-hmac
(here encryption type is des and hashing technique is md5-hmac)
Router-B(config)#crypto map imap 10 ipsec-isakmp
(crypto
map name imap)
Router-B(cfg-ctypto-map)# match address 100
(apply the access list)
Router-B(cfg-ctypto-map)# set transform-set ts2
(apply the transform set)
Router-B(cfg-ctypto-map)# set peer 20.1.1.10
(Set remote peer address)
Router-B(cfg-ctypto-map)# exit
(Exit
from crypto map mode)
Router-B(config)#interface serial 1/0
Router-B(config-if)#crypto map
imap
(Apply crypto map on interface)
Router-B(config-if)#exit
(Exit from interface)