cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
661
Views
0
Helpful
2
Replies

modify the preference value of the default route

Ibrahim Jamil
Level 6
Level 6

Hi

 

How to achieve the Below ? any configuration example?

 

1)How to modify the preference value of the default route to be less prefered than OSPF External route

2)how to redistribute the default route as type 2 external route

3)how to redistribute the default route as type 1 external route

 

thanks

2 Replies 2

Joseph Nelson
Level 1
Level 1

Hi Ibrahim,

See below:

 

1) Can you elaborate on this a bit? Can you explain, specifically, what your trying to accomplish? I don't think you can get a default route into the OSPF RIB that is not external as the default is injected as a Type-5 LSA (e1 or e2). If your talking about getting a router to use the OSPF learned default over the default router learned via some other source (e.g. static, BGP, etc), then it depends on the source because of the Administrative Distance when comparing the two defaults ( the one default learned via OSPF has AD=110, and the other default is AD=X, where X is the Administrative Distance assigned to the protocol).

2) Use the "default-information originate metric-type 2" command under "router ospf" -- Note this is the default

3) Use the "default-information originate metric-type 1" command under "router ospf" -- Note, you don't need this in Totally Stubby Area.

4) For NSSA area you have to use the "area nssa <area_num> default information-originate metric-type <type>" router subcommand. Note your NSSA should have a Type-7 LSA for the default route

 

Rate if helpful.

Joe

Hello

1)How to modify the preference value of the default route to be less prefered than OSPF External route - ip route x.x.x.x y.y.y.y 109

2)how to redistribute the default route as type 2 external route - default-information originate metric

3)how to redistribute the default route as type 1 external route - default-information originate metric-type 1

res

Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card