Hi,
Here I have two routes from /ip/route/print detail
D b dst-address=0.0.0.0/0 routing-table=main gateway=22.33.44.55 immediate-gw=22.33.44.55%eth2 distance=20 scope=40 target-scope=10
suppress-hw-offload=no
DAb dst-address=0.0.0.0/0 routing-table=main gateway=33.44.55.66 immediate-gw=33.44.55.66%eth3 distance=200 scope=40 target-scope=30
suppress-hw-offload=no
The distance is lower for the first one (advertised via eBGP), but it's not the best candidate.
The second route (Advertised by an iBGP router from an upstream ISP) is being preferred.
Both routes are received by two different ISPs.
Why is the router choosing the second option when the distance is higher?
default-originate and next-hop self is enabled on each side of the iBGP peering.