R1:
en
conf terno ip domain-lookupip classlessip subnet-zerointerface loopback 0
ip add 10.1.1.1 255.255.255.0interface s1/2
ip add 173.16.1.1 255.255.255.252no shutdowninterface f2/0
ip add 11.0.0.1 2555.0.0.0no shinterface tunnel 0
ip unumbered s1/2tunnel source s1/2tunnel destination 172.16.1.2no shexitip route 0.0.0.0 0.0.0.0 173.16.1.2
ip route 10.2.2.0 255.255.255.0 tunnel 0ip route 0.0.0.0 0.0.0.0 tunnel0end-----------------------------------------------------------conf tercrypto isakmp enablecrypto isakmp policy 10hash md5authentication pre-shareencryption 3desgroup 2exitcrypto isakmp key cisco1234 add 173.16.1.2
crypto ipsec transform-set ccsp esp-des esp-md5-hmac
mode transportexitaccess-list 101 permit gre host 173.16.1.1 host 173.16.1.2
access-list 101 permit ip 11.0.0.0 0.255.255.255 12.0.0.0.0 0.255.255.255crypto map cisco 10 ipsec-isakmp
set peer 173.16.1.2set transform-set ccsp match address 101exitinterface s1/2
crypto map ciscono shutend---------------------------------------------------------
R2:
en
conf terno ip domain-lookupip classlessip subnet-zerointerface loopback 0
ip add 10.2.2.1 255.255.255.0interface s1/5
ip add 173.16.1.2 255.255.255.252no shutdowninterface f2/0
ip add 12.0.0.1 2555.0.0.0no shinterface tunnel 0
ip unumbered s1/5tunnel source s1/5tunnel destination 172.16.1.1no shexitip route 0.0.0.0 0.0.0.0 173.16.1.1
ip route 10.1.1.0 255.255.255.0 tunnel 0ip route 0.0.0.0 0.0.0.0 tunnel0end----------------------------------------------------
conf ter
crypto isakmp enablecrypto isakmp policy 10hash md5authentication pre-shareencryption 3desgroup 2exitcrypto isakmp key cisco1234 add 173.16.1.1
crypto ipsec transform-set ccsp esp-des esp-md5-hmac
mode transportexitaccess-list 101 permit gre host 173.16.1.2 host 173.16.1.1
access-list 101 permit gre 12.0.0.0 0.255.255.255 11.0.0.0.0 0.255.255.255crypto map cisco 10 ipsec-isakmp
set peer 173.16.1.1set transform-set ccspmatch address 101exitinterface s1/5
crypto map ciscono shutend