Bgp rib failure

Hi

in this example,R1 received 1.1.1.0/24 from R1 and the result in R1 bgp table
1.1.1.0/24 next hop 2.2.2.2 but when we`re looking at 2.2.2.0/24 ,that is not the same r> 2.2.2.0/24 next hop 2.2.2.2 why both routes into bgp table are not the same if both routes are the same case ?
Why does 2.2.2.0/24 have ‘r’ but not 1.1.1.0/24?
why doesn’t 1.1.1.0/24 have a ‘r’ on the line that has the ‘>’? The line where the source is 0.0.0.0 .
How come it doesn’t have a ‘r’? Instead it has a ‘*’
why 1.1.1.0/24 does not has r ?
when i configure the C route for 1.1.1.0/24 and it receive a bgp route that means C route preferred than the bgp route and the bgp update should have r

but when i configured the static route it has ad=1 and when it get a bgp update the static route for 2.2.2.0/24 with ad=1 will better than the bgp update and it has r

what is the difference between c and s ?

that is the question

I think the difference here has to do with the BGP rib and how the best path is chosen. In the case of 2.2.2.0 you aren’t injecting that prefix into BGP on R1 so it’s essentially telling you that your best path is via a different source i.e., static route which is not in
the BGP RIB. Where as for 1.1.1.0 you injected that prefix into BGP and you are receiving that prefix from R2 via BGP. The best path is the local BGP route you injected into BGP in that case.

1 Like

ok sir,but why 2.2.2.0/24 has r and 1.1.1.0/24 don`t ?

Because in the case of 2.2.2.0 you don’t have a valid route in the BGP RIB, whereas, for 1.1.1.0 you do, i.e. 0.0.0.0. If you where to inject the static route for 2.2.2.0 into BGP you should see the same, however, it wouldn’t make practical sense to do that in the design you have.

Because in the case of 2.2.2.0 you don’t have a valid route in the BGP RIB, whereas, for 1.1.1.0 you do

sir,hold on
what is the difference between having a route in the global RIB vs having a route in the BGP RIB?
in my case, i have a valid static route in the global RIB on R1 for 2.2.2.0/24,but i have a C route for 1.1.1.0/24
what is the difference here ?
for 2.2.2.0/24 , R1 received this route via B route and should inject it into the global RIB which is something that doesn`t happened
maybe you want to say the route in the BGP RIB sohuld be in the global RIB ?