An interesting lab to say the least. Hard at times to wrap your mind around which way you are permitting or denying routes.
Lab objectives
Router 2(1)
interface Loopback0
ip address 10.1.0.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0
ip address 10.1.13.2 255.255.255.0
no fair-queue
no dce-terminal-timing-enable
service-module t1 clock source internal
service-module t1 timeslots 1-24
!
interface Serial0/1
ip address 10.1.12.2 255.255.255.0
no fair-queue
no dce-terminal-timing-enable
!
router ospf 1
log-adjacency-changes
network 10.0.0.0 0.255.255.255 area 0
Router 3(2)
router eigrp 100
redistribute ospf 1 route-map ospf-to-eigrp
network 10.1.23.0 0.0.0.255
network 10.1.24.0 0.0.0.255
distance eigrp 90 105
no auto-summary
!
router ospf 1
log-adjacency-changes
redistribute eigrp 100 subnets route-map eigrp-to-ospf
network 10.1.12.0 0.0.0.255 area 0
!
!
!
ip http server
no ip http secure-server
!
access-list 1 permit 10.4.0.0 0.0.0.255
access-list 1 permit 10.4.1.0 0.0.0.255
access-list 2 permit 10.4.2.0 0.0.0.255
access-list 2 permit 10.4.3.0 0.0.0.255
access-list 3 permit 10.4.4.0 0.0.0.255
!
route-map eigrp-to-ospf deny 5
match tag 40
!
route-map eigrp-to-ospf permit 10
match ip address 1
set metric 100
set tag 10
!
route-map eigrp-to-ospf permit 20
match ip address 2
set metric 200
set tag 20
!
route-map eigrp-to-ospf deny 30
match ip address 3
!
route-map eigrp-to-ospf permit 40
set metric 300
set tag 30
!
route-map ospf-to-eigrp deny 5
match tag 10 20 30
!
route-map ospf-to-eigrp permit 10
set metric 400 20 255 1 1500
set tag 40
Router 1(3)
router eigrp 100
redistribute ospf 1 route-map ospf-to-eigrp
network 10.0.0.0
no auto-summary
!
router ospf 1
log-adjacency-changes
redistribute eigrp 100 subnets route-map eigrp-to-ospf
network 10.1.13.0 0.0.0.255 area 0
!
!
!
ip http server
no ip http secure-server
!
access-list 1 permit 10.4.0.0 0.0.0.255
access-list 1 permit 10.4.1.0 0.0.0.255
access-list 2 permit 10.4.2.0 0.0.0.255
access-list 2 permit 10.4.3.0 0.0.0.255
access-list 3 permit 10.4.4.0 0.0.0.255
!
route-map eigrp-to-ospf deny 5
match tag 40
!
route-map eigrp-to-ospf permit 10
match ip address 1
set metric 100
set tag 10
!
route-map eigrp-to-ospf permit 20
match ip address 2
set metric 200
set tag 20
!
route-map eigrp-to-ospf deny 30
match ip address 3
!
route-map eigrp-to-ospf permit 40
set metric 300
set tag 30
!
route-map ospf-to-eigrp deny 5
match tag 10 20 30
!
route-map ospf-to-eigrp permit 10
set metric 400 20 255 1 1500
set tag 40
Router 5(4)
interface Loopback0
ip address 10.4.0.1 255.255.255.0
!
interface Loopback1
ip address 10.4.1.1 255.255.255.0
!
interface Loopback2
ip address 10.4.2.1 255.255.255.0
!
interface Loopback3
ip address 10.4.3.1 255.255.255.0
!
interface Loopback4
ip address 10.4.4.1 255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.0.186 255.255.255.0
shutdown
duplex auto
speed auto
!
interface Serial0/0
ip address 10.45.1.5 255.255.255.0
ip ospf network point-to-point
shutdown
no dce-terminal-timing-enable
service-module t1 clock source internal
service-module t1 timeslots 1-24
!
interface Serial0/1
ip address 10.1.24.5 255.255.255.0
no dce-terminal-timing-enable
!
router eigrp 100
network 10.0.0.0
no auto-summary