cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
241
Views
5
Helpful
1
Replies

OSPF default route

duyngo
Level 1
Level 1

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 1

ruwhite
Level 7
Level 7

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: