Wednesday, August 22, 2012

Advanced Route Redistribution






Router 1


!
interface Loopback0
 ip address 10.1.0.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 10.1.12.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.1.13.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet2/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet3/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
router ospf 1
 log-adjacency-changes
 network 10.0.0.0 0.255.255.255 area 0

R2


interface FastEthernet0/0
 ip address 10.1.23.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.1.24.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet2/0
 ip address 10.1.12.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet3/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
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.0.0 0.0.0.255 area 0
 network 10.1.12.0 0.0.0.255 area 0
!
no ip http 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 3


interface FastEthernet0/0
 ip address 10.1.23.3 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.1.13.3 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet2/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet3/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
router eigrp 100
 redistribute ospf 1 route-map ospf-to-eigrp
 network 10.1.23.0 0.0.0.255
 no auto-summary
!
router ospf 1
 log-adjacency-changes
 redistribute eigrp 100 subnets route-map eigrp-to-ospf
 network 10.1.0.0 0.0.0.255 area 0
 network 10.1.13.0 0.0.0.255 area 0
!
no ip http 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 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 10.1.24.4 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet2/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet3/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
router eigrp 100
 network 10.0.0.0
 no auto-summary
!
no ip http server
!
!
!
access-list 3 permit 10.4.4.0 0.0.0.255



No comments:

Post a Comment