BGP advertising a default route
Default routes are used by routing devices to forward packets to destination networks that are not specifically defined in entries within the routing table.
There are a couple of ways to configure a router running BGP to advertise a default route to its BGP peers.
Network Command
Configure a static route to the 0.0.0.0/0 network pointing to the null 0 interface by issuing the ip route 0.0.0.0 0.0.0.0 null0
command. Then use the network 0.0.0.0
command to inject the route into BGP.
Default-Originate
Add a default route to the null0 interface with ip route 0.0.0.0 0.0.0.0 null0
and then use the neighbor x.x.x.x default-originate
command to advertise the default route.
Links
https://networklessons.com/bgp/how-to-advertise-networks-in-bgp/