Redistributng BGP Default into OSPF

Answered Question
Jun 12th, 2009
User Badges:
  • Blue, 1500 points or more

Hi:


I have a BGP speaker thats learning a default route from the ISP. I know that I can run OSPF on that same edge router, which makes it an ASBR, by the way, and inject a default route into the OSPF domain by using the default-information-originate command. The caveat being that the default route must be in the routers RIB, unless, of course, I use the "always" keyword. Inthat case the dfault will be injected into the OSPF area even if one does not exist on the edge router (ASBR).


However, is it possible to do a "redistribute bgp 65000" under the OSPF process to inject the BGP-learned default route into the OSPF area that way?


Thanks

Correct Answer by Harold Ritter about 8 years 1 month ago

Hi Victor,


It is not possible to redistribute the default route into ospf using the redistribute statement.


As you mentioned, you can definitely use the "default-information originate" statement without the always keyword, which will only inject the route into ospf if it is already present in the RIB (from BGP or other source).


Regards

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Harold Ritter Fri, 06/12/2009 - 18:20
User Badges:
  • Cisco Employee,

Hi Victor,


It is not possible to redistribute the default route into ospf using the redistribute statement.


As you mentioned, you can definitely use the "default-information originate" statement without the always keyword, which will only inject the route into ospf if it is already present in the RIB (from BGP or other source).


Regards

lamav Fri, 06/12/2009 - 21:31
User Badges:
  • Blue, 1500 points or more

Hi, Harold:


Thanks for confirming. Unfortunately, I am on an engagement out of state and I dont have access to my lab. I would have just 'labbed it up' otherwise.


Thanks again.


Victor

Actions

This Discussion