even though it appears in the BGP table, it's not going to be a candidate to the RIB table. I have seen in previous IOS versions that, when this command is applied (neighbor x.y.z.x default-originate) the result is that the peer is advertising a default route dynamically regardless if it has a default route in the RIB or not. Also, it does not install a default in the BGP table and it bypasses the BGP filters (Adj-Rib-Out). I have tested in IOS 15.0M and I have got the same results that you have posted. I have tested the behavior of this and it appears to me just a "cosmetic" thing in the router:
R1 is advertising a default route to R2
R1#show ip bgp
BGP table version is 2, local router ID is 10.1.12.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
0.0.0.0 0.0.0.0 0 i
However, it does not appear in the RIB:
R1#show ip route 0.0.0.0
% Network not in table
I have installed another default route as a matter of fact that the previous one is not taken into account:
ip route 0.0.0.0 0.0.0.0 Null0
Router bgp 1
network 0.0.0.0 route-map TEST
The route-map TEST sets the weight to 0 and Local Preference to 0 to become worse than the other:
route-map TEST permit 10
set local-preference 0
set weight 0
But, as you can see, it is the best as the other one is not eligible:
R1#sh ip bgp 0.0.0.0
BGP routing table entry for 0.0.0.0/0, version 10
Paths: (2 available, best #1, table default)
Advertised to update-groups:
0.0.0.0 from 0.0.0.0 (10.1.12.1)
Origin IGP, metric 0, localpref 0, valid, sourced, local, best
Do you use Cisco DNA Center? Have you used and are you willing to provide your feedback in using the Cisco DNA Center help and documentation?
If so, we’d like you to complete the survey linked below. Your feedback will help provide more effective and easi...
Listen: https://smarturl.it/CCRS9E18Follow us: https://twitter.com/CiscoChampion Reaching the height of your career is no simple feat. It often requires a combination of pursuing the right education, building the right professional network and being ...
In a typical production SD-WAN deployment, we would probably have many remote sites connected via many different Internet connections to a centralized data center or a regional hub. In most regions in the world, Internet providers will always use some typ...