06-07-2003 12:05 PM - edited 03-02-2019 07:58 AM
I need to have a router prefer an external type 2 over a intra area route in OSPF. Any ideas on how this can be done for a specific link or route?
bcbv
06-07-2003 01:36 PM
To persuade the router to do that you'd have to change the administrative distance (AD) of the particular route/link in the router.
For OSPF you can change the AD for ALL routes inside the router using the distance ospf command:
But that's hardly what you're looking for, since that applies to all and not a single route.
Similarly you could in theory filter based on source of the route based on the OSPF router originating the routes in question:
But that too probably doesn't achieve what you want.
My best guess would be to use policy routing:
though that's pretty close to just using a static route.
06-08-2003 07:46 AM
OSPF will always prefer an internal route, either intra-area or inter-area, over a external type-2 route. Your best bet, if you have control over the route in question, is to have the external type-2 route changed to a type-1 route. Even then, you will need to make sure the total cost of the route is less than the total cost of the itra-area route.
Good luck.
Mark
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