12-02-2014 03:24 AM - edited 03-05-2019 12:16 AM
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
12-02-2014 09:31 PM
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
12-03-2014 12:12 AM
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
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