cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

137
Views
5
Helpful
3
Replies
Frequent Contributor

Redistributing Statics into OSPF and EIGRP

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

 

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Beginner

Hello,EIGRP has two metrics

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

Hall of Fame Cisco Employee

Umesh,You're correct but be

Umesh,

You're correct but be careful with the administrative distances. OSPF uses 110, not 120 (120 is for RIP).

Best regards,
Peter

3 REPLIES 3
Beginner

Hello,EIGRP has two metrics

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

Hall of Fame Cisco Employee

Umesh,You're correct but be

Umesh,

You're correct but be careful with the administrative distances. OSPF uses 110, not 120 (120 is for RIP).

Best regards,
Peter

Highlighted
Beginner

Hi Peter,Sorry for the typo

Hi Peter,

Sorry for the typo and thanks for correcting. :)

 

 

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards