Thursday, August 14, 2014

Redistribution EIGRP and OSPF: route-map, filtering-tags, modify-AD(Administrative distance.)




Q1. Configure EIGRP and OSPF for the network shown (use OSPF Area 0).
Advertise all networks on all routers.
Do not implement any summarization features for EIGRP or OSPF.
Routers should never be advertised in both OSPF and EIGRP routing domains.


Q2. Enable full, mutual redistribution on R2 and R3 between OSPF and EIGRP.
The 10.4.0.0/24 and 10.4.1.0/24 subnets should have a seed metric of 100
and an OSPF tag of 10 while the 10.4.2/24 and 10.4.3.0/24 subnets should have a seed metric of 200 and an OSPF tag of 20.
All other subnets redistributed into OSPF should have a seed metric of 300 and an OSPF tag of 30.
OSPF routes redistributed into EIGRP should have a seed metric of BW:400, DLY:20, REL:255, LD:1, MTU:1500 and a tag of 40.
Finally, external OSPF routes should not increment their metric as they pass through the OSPF domain.

R2 and R3>
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 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

#####show ip route 10.4.0.0 (Details including tag information)

route-map OSPF-TO-EIGRP
set metric 400 20 255 1 1500
set tag 40

router eigrp 100
redistribute ospf 1 route-map OSPF-TO-EIGRP
router ospf 1
redistribute eigrp 100 subnets route-map EIGRP-TO-OSPF

Q3. Ensure the 10.4.4.0/24 network does not reach the OSPF routing domain.

Q4. Enable filtering using the assigned route tags to ensure redistributed routes do not cause any looping issues.

R2 and R3>
conf t
route-map OSPF-TO-EIGRP deny 5
match tag 10 20 30
route-map EIGRP-TO-OSPF deny 5
match tag 40
####### tag 10 20 30 : This is a OR statement.
####### match tag 10 : These are AND statement.
####### match tag 10
####### match tag 30

Q5. R3 has the preferred route to reach the 10.1.0.0/24 network. Ensure routers prefer this path over the path from R2.

R2>
conf t
router eigrp 100
distance eigrp 90 105



--------------------------------------------------------------------------------

Configuration

R1>
interface Loopback0
 ip address 10.1.0.1 255.255.255.0
 ip ospf network point-to-point
!
interface Serial0/2
 ip address 10.1.12.1 255.255.255.0
 clock rate 2000000
!
interface Serial0/3
 ip address 10.1.13.1 255.255.255.0
 clock rate 2000000
!
router ospf 1
 log-adjacency-changes
 network 10.0.0.0 0.255.255.255 area 0

R2>
interface Serial0/1
 ip address 10.1.12.2 255.255.255.0
 clock rate 2000000
!
interface Serial0/3
 ip address 10.1.23.2 255.255.255.0
 clock rate 2000000
!
interface Serial0/4
 ip address 10.1.24.2 255.255.255.0
 clock rate 2000000
!
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
!      
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

R3>
interface Serial0/1
 ip address 10.1.13.3 255.255.255.0
 clock rate 2000000
!
interface Serial0/2
 ip address 10.1.23.3 255.255.255.0
 clock rate 2000000
!
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.13.0 0.0.0.255 area 0
!      
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

R4>
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.3.1 255.255.255.0
!
interface Loopback3
 ip address 10.4.2.1 255.255.255.0
!
interface Loopback4
 ip address 10.4.4.1 255.255.255.0
!
interface Serial0/2
 ip address 10.1.24.4 255.255.255.0
 clock rate 2000000
!      
router eigrp 100
 network 10.0.0.0
 no auto-summary

No comments:

Post a Comment