04-02-2009 05:28 AM - edited 03-04-2019 04:12 AM
I have a router that is running both BGP and OSPF.
BGP is learning the default route from its BGP neighbor.
I was going to redistribute the default route into OSPF with a route map and the âredistributeâ command but I noticed that once I configured OSPF with the âdefault-information originateâ command OSPF learned the correct default route and propagated it.
Does this mean I don't need to add the âredistribute BGPâ command to my OPSF configuration?
Is this a good practice?
04-02-2009 05:36 AM
Hello Thom,
ospf default-information originate checks if there is a default route installed in the routing table if there is an OSPF LSA type 5 for 0.0.0.0/0 is generated and propagated in the ospf domain.
unless you use the always keyword should the BGP session fall down the OSPF LSA will be removed.
This can be a good solution if this is your single exit point to internet.
in more complex scenarios you can invoke a route-map as option of default-information originate so that you can check from what BGP neighbor the 0.0.0.0/0 is received for example
you don't need to redistribute bgp into ospf for this.
Hope to help
Giuseppe
04-02-2009 05:37 AM
When you configure the default-information originate command under ospf, it will generate & advertise a default route as long as it sees a valid entry in its routing table .
In your case the default is being learnt from BGP so when u configure the command under opsf it starts advertisign the default. If your requirement is to just propogate the default, you need not do redistribution
Narayan
05-18-2009 07:43 PM
You can not redistribute a default route into OSPF. You have to originate it using " default-information originate " command.
HTH,
Rakesh
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