Pages

Wednesday, January 13, 2010

route-map EIGRP to OSPF

Network Diagram



Redistribute network from EIGRP to OSPF using route-map.
we have 9 network, 10.11.1.x - 10.11.9.x to redistribute from EIGRP to OSPF
we'll divided or filter this into 3 group using access-list.


ip access-list standard NET1to3
 permit 10.11.1.0 0.0.0.255
 permit 10.11.2.0 0.0.0.255
 permit 10.11.3.0 0.0.0.255


ip access-list standard NET4to6
 permit 10.11.4.0 0.0.0.255
 permit 10.11.5.0 0.0.0.255
 permit 10.11.6.0 0.0.0.255


ip access-list standard NET7
 permit 10.11.7.0 0.0.0.255

once we done with the grouping, now let's define the route-map, their match group and the specific charataristic.
We'll assume that acl group NET4to6 more important than NET1to3, so we'll set this group with lower metric, both also will be converted into different type of OSPF external network.
Third route-map will deny ip address matches the ACL NET7 from being redistribute.

route-map RM1 permit 10
 match ip address NET1to3
 set metric 1000
 set metric-type type-1      //type = metric increase along the way
!
route-map RM1 permit 20
 match ip address NET4to6
 set metric 500              //lower the metric higher the prior
set metric-type type-2       //type 2 = metric stay
!
route-map RM1 deny 30
 match ip address NET7
!
route-map RM1 permit 40
 set metric 200
 set metric-type type-1

if you notice there's no match ip address inside route-map RM1 permit 40, this gonna act as default or in other words match any. now we'll apply this route-map to be injected into OSPF

router ospf 1
 log-adjacency-changes
 redistribute eigrp 1 subnets route-map RM1
 network 10.1.23.1 0.0.0.0 area 0

on R3, show ip route ospf

O E1    10.11.1.0/24 [110/1128] via 10.1.34.1, 00:35:11, Serial0/0 //this match NET1to3, check the metric,
O E1    10.11.3.0/24 [110/1128] via 10.1.34.1, 00:35:11, Serial0/0 //it's increasing, type-1. 
O E1    10.11.2.0/24 [110/1128] via 10.1.34.1, 00:35:11, Serial0/0
O E2    10.11.5.0/24 [110/500] via 10.1.34.1, 00:27:01, Serial0/0   // this match NET4to6, metric is same
O E2    10.11.4.0/24 [110/500] via 10.1.34.1, 00:27:01, Serial0/0   // as we configure, type2 = no change
O E2    10.11.6.0/24 [110/500] via 10.1.34.1, 00:27:01, Serial0/0
O E1    10.1.12.0/30 [110/328] via 10.1.34.1, 00:27:01, Serial0/0   //all the network didn't match any ACL
O E1    10.11.9.0/24 [110/328] via 10.1.34.1, 00:27:01, Serial0/0   //will fall under our default route-map, as 
O E1    10.11.8.0/24 [110/328] via 10.1.34.1, 00:27:01, Serial0/0   //we set for this group, original metric
O       10.1.23.0/30 [110/128] via 10.1.34.1, 00:35:11, Serial0/0   //200 with type-1

network 10.11.7.x are being denied from distributed into OSPF, so we are not gonna see it here

2 comments:

  1. kemah usaha demo..teruskan..letok address blog di FB..moga ramai yg membantu

    ReplyDelete