08-06-2015 09:04 AM - edited 03-08-2019 01:16 AM
Hello All,
I am doing some testing with RD'ing statics into both OSPF and EIGRP and I am finding that my neighbour routers are learning the routes via OSPF. Should EIGRP not take preference?
I have a static route which I then reference in a prefix list. I have a route-map matching the prefix list and then RD'ing that into the routing processes (both EIGRP and OSPF).
e.g -
router eigrp 100
redistribute static metric 100000 1 255 1 1500 route-map TEST
router ospf 1
redistribute static subnets route-map TEST
The OSPF process always seems to "win" and advertise the route to my neighbour router. Is this using a better metric?
Thanks
Solved! Go to Solution.
08-06-2015 09:29 AM
Hello,
EIGRP has two metrics 90- for internal routes ie routes originated within EIGRP (by a network statement) and 170 - for routes redistributed into EIGRP from other routing protocols. OSPF has only one ie 120 for internal and external routes. When you redistribute the same prefix into both processes OSPF (120) is preferred over EIGRP external (120). Hope this answers your question.
Regards
Umesh
08-06-2015 09:51 AM
Umesh,
You're correct but be careful with the administrative distances. OSPF uses 110, not 120 (120 is for RIP).
Best regards,
Peter
08-06-2015 09:29 AM
Hello,
EIGRP has two metrics 90- for internal routes ie routes originated within EIGRP (by a network statement) and 170 - for routes redistributed into EIGRP from other routing protocols. OSPF has only one ie 120 for internal and external routes. When you redistribute the same prefix into both processes OSPF (120) is preferred over EIGRP external (120). Hope this answers your question.
Regards
Umesh
08-06-2015 09:51 AM
Umesh,
You're correct but be careful with the administrative distances. OSPF uses 110, not 120 (120 is for RIP).
Best regards,
Peter
08-06-2015 10:00 AM
Hi Peter,
Sorry for the typo and thanks for correcting. :)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide