Hi,
I have an observation regarding the following statement:
You can recognize these because the next hop is always 0.0.0.0.
I created the following lab:
1.1.1.0/24—(R1)—OSPF—(R2)—iBGP----(R3)----1.1.1.0/24
Redistribution was used for 1.1.1.0/24 on R2 and the network command on R3. On R2, weight was modified to be the same, LocalPref of 100 remained the same. BGP selected the locally redistributed route over the one learned via the network command on R3, as expected.
However, the next hop was not 0.0.0.0 and is set the the IGP’s (OSPF) next hop. It seems next hop is only 0.0.0.0 if it is a directly connected route.
R2: