Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

OSPF default route

Hello,

I have 2 core routers running BGP,OSPF and injecting default route to 2 core switches (using command: default-info originate always). So, each switch has 2 default routes. These switches are running HSRP. Is this a bad practice?if so, what would you recommend? if the candidate default route goes down, will the switch take the other default route?

Thank you very much

ND

1 REPLY
Gold

Re: OSPF default route

If both routers are originating the default route all the time, one failure will leave you with load balanced traffic being black holed. I think what you're doing is fine, except that caveat. I'd probably condition default route generation on the link towards the service provider being up.

There are a couple of ways you could do this. For instance, you could set up static defaults towards the service provider, along the interfaces (as long as they are point-to-point interfaces, not broadcast interfaces, like ethernet), and redistribute those into OSPF at the edges. You could run BGP with the providers just to get a default, so you can redistribute that default in ospf, and then, when the SP connection fails, the default will go away.

Either of these should also work with OSPF and default-information originate, without the always keyword. The default-information originate command also allows a route map to be attached to it, describing when the default should be originated. You could then condition the default being generated on some other route being in the routing table, such as the connected network that leads to each service provider.

If you need more information on a specific option, please post here, and someone can probably work up a configuration, or point to configurations on CCO, for any one of these.

Russ.W

76
Views
5
Helpful
1
Replies