How to advertise a default route learned via OSPF to an eBGP peer? Cisco.

Router A and B are eBGP peers. Router A and C are OSPF neighbors and A learns its default route 0.0.0.0
from router C via OSPF. I want to advertise 0.0.0.0 from router A to router B via eBGP. What needs to be
added to allow that to happen?

Router A
  router bgp 7777
     network 10.0.0.0/8
     network 192.168.0.0/16

  router ospf 1

Router B
  router bgp 1088
    network 10.127.0.0/16

Router C
   router ospf 1
   
    ip route 0.0.0.0/0 10.7.7.1
LVL 2
amigan_99Network EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JustInCaseCommented:
There are few ways to do it, since OSPF neighbor learned default route and default route is present in routing table .. for eBGP to advertise default route:
- redistribute default route into BGP
- network 0.0.0.0 command
- default-information originate command

There is also case where eBGP router can advertise default route without having default route in its routing table:
- neighbor X.X.X.X default-originate

You can find code - Default routes in BGP.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
amigan_99Network EngineerAuthor Commented:
Predrag to the rescue!

I really like the neighbor x.x.x.x default - as this would have the least chance of affecting any of the other peers. There must be 20 peers here - to AWS.

Thanks again sir.
JustInCaseCommented:
You're welcome.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Routers

From novice to tech pro — start learning today.