Master EIGRP for a successful Cisco certification journey
As we know EIGRP is an Advance Distance Vector Routing Protocol, so whenever we do redistribution in Distance vector routing protocol it does not add metric by itself so we need to specify the metric values while doing redistribution. And whenever we get external routes in EIGRP, router installs the routes with D EX code & wit AD-170
So let’s redistribute other Protocol into EIGRP
So here Between Router R3 and Router R7 we are running OSPF and on left side of Router R3 we are running EIGRP R3 is getting some routes in OSPF, so let’s do a redistribution
*R3(config)#router eigrp 10
*R3(config-router)#redistribute ospf 1 metric 1000 1 255 1 1500
*R3(config-router)#exit
And now Router R1 is getting those route are as EIGRP External with AD-170
So right now we have done redistribution with all the routes, we can also control the route redistribution, like what routes needs to redistribute in EIGRP or what routes needs to be block.
So to control routes redistribution we create ACL and call in route-map while doing redistribution.
Do let’s do redistribution with route control
*R3(config)#access-list 5 permit host 5.5.5.5
*R3(config)#route-map control permit 10
*R3(config-route-map)#match ip address 5
*R3(config-route-map)#exit
*R3(config)#router eigrp 10
*R3(config-router)#redistribute ospf 1 metric 1000 1 255 1 1500 route-map control
*R3(config-router)#exit
So now we can see only route 5.5.5.5 is getting as external route and other routes are blocked in redistribution because we were using ACL with 5.5.5.5 at the route of redistribution