r1:

inter e1/0

ip add 123.1.1.1 255.255.255.0

no sh

inter lo0

ip add 1.1.1.1 255.255.255.255r2:

int e0/0

ip add 123.1.1.2 255.255.255.0

no sh

int lo0

ip add 2.2.2.2 255.255.255.255

r1:

cry isa pol 10

au pre

h md5

cry keyring cisco

pre-shared-key address 123.1.1.2 key cisco

cry isa profile cisco

match identity address 123.1.1.2

kering cisco

cry ipsec transform-set cisco esp-des esp-md5-hmac

cry ipsec profile cisco

set transform-set cisco

set isakmp-profile cisco

int tunnel 0

tunnel mode ipsec ipv4

tunnel source e1/0

tunnel destination 123.1.1.2

int tunnel 0

tunnel protection ipsec profile cisco

r2:

crypto keyring cisco

pre-shared-key address 123.1.1.1 key cisco

crypto isakmp policy 10

authentication pre-share

crypto isakmp profile cisco

keyring cisco

match identity address 123.1.1.1 255.255.255.255

crypto ipsec transform-set cisco esp-des esp-md5-hmac

crypto ipsec profile cisco

set transform-set cisco

set isakmp-profile cisco

interface tunnle0

tunnel source ethernet0/0

tunnel destination 123.1.1.1

tunnel mode ipsec ipv4

tunnel protection spsec profile cisco

r1:

int tunnel 0

ip add 192.168.1.1 255.255.255.0

r2:

int tunnel 0

ip add 192.168.1.2 255.255.255.0

r1:

router ospf 1

router-id 1.1.1.1

network 1.1.1.1 0.0.0.0 area 0

network 192.168.1.0 0.0.0.255 area

r2:

router ospf 1

router-id 2.2.2.2

net 2.2.2.2 0.0.0.0 area 0

net 192.168.1.0 0.0.0.255 area 0