Wednesday, 5 August 2009

Generic Routing Encapsulation (GRE) over IP Security (IPSec) Part 2

As a reference here is the lab:


So far we have the IPsec up and GRE running over the top.

Now the easy part configuring OSPF over the tunnels:
R1:

router ospf 1
router-id 1.1.1.1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 1
network 192.168.12.0 0.0.0.255 area 0
network 192.168.13.0 0.0.0.255 area 0
network 192.168.14.0 0.0.0.255 area 0


R2:

router ospf 1
router-id 2.2.2.2
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 2
network 10.0.2.0 0.0.0.255 area 2
network 172.16.0.0 0.0.0.255 area 2
network 192.168.12.0 0.0.0.255 area 0
!



R3:

router ospf 1
router-id 3.3.3.3
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 3
network 10.0.3.0 0.0.0.255 area 3
network 192.168.13.0 0.0.0.255 area 0
!


R4:

router ospf 1
router-id 4.4.4.4
log-adjacency-changes
network 4.4.4.4 0.0.0.0 area 4
network 10.0.4.0 0.0.0.255 area 4
network 192.168.14.0 0.0.0.255 area 0
!



EIGRP Configuration:
R1:

router eigrp 100
network 10.0.15.0 0.0.0.255
no auto-summary
!


R5:

router eigrp 100
network 5.5.5.5 0.0.0.0
network 10.0.15.0 0.0.0.255
no auto-summary
!






Now on to the two redistribution:
R1
EIGRP in to OSPF

router ospf 1
router-id 1.1.1.1
log-adjacency-changes
redistribute connected metric 1 subnets
redistribute eigrp 100 metric 1 subnets

network 1.1.1.1 0.0.0.0 area 1
network 192.168.12.0 0.0.0.255 area 0
network 192.168.13.0 0.0.0.255 area 0
network 192.168.14.0 0.0.0.255 area 0
!

OSPF into EIGRP

router eigrp 100
redistribute connected
redistribute ospf 1 metric 1544 40 255 1 1500

network 10.0.15.0 0.0.0.255
no auto-summary
!


Done!

No comments: