cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1708
Views
15
Helpful
7
Replies

BGP Global RIB vs Adj-RIB-Out

hfakoor222
Spotlight
Spotlight

)

 

Now in the snippet below step 5 mentions "Install the best-path route into the global RIB, process outbound rules... then advertise to BGP peers"

 

My question is this statement referring to the best route being advertised from the global-RIB or the routes in the Adj-OUT table being advertised? I'm assuming it is the global RIB.

 

 

2.png

 

2.png

 

 

2 Accepted Solutions

Accepted Solutions

Screen Shot 2022-05-22 at 11.26.50 PM.png

this my note for Loc-RIB and Adj-RIB-Out.

View solution in original post

First Thanks to @paul.driver  for his comment.
and @hfakoor222 to be 100 % sure that happened I do small LAB 
R1-R4-R2 AS 100
R2-R3  AS 200
LO 1.1.1.1 in both R1 and R4
mhm1.png

show ip bgp route <- receive the LO route from R1 


Nei1 show route.png

show ip bgp route<- receive the LO route from R4


nei2 show ip route.png

show ip route global


show global.png

apply

route-map OUT 

match permit only LO route that next-hop is R4

route-map.png

 

NOW when apply

 route-map OUT

and check

show ip route 

R3 advertised-route 
I see that there is NO route and that make sense since 

Global RIB contain only best path. 
best path is point to R1 not R4 
I apply

route-map OUT

to filter 
the LO route is missing 
because

route-map OUT

apply to global RIB not Local-RIB receive from R1/R4 i.e. after best path select not before that.
and hence the Adj-RIB-out is show "0" route.

so I hope this lab is answer your Q.

View solution in original post

7 Replies 7

Screen Shot 2022-05-22 at 11.26.50 PM.png

this my note for Loc-RIB and Adj-RIB-Out.

.

hfakoor222
Spotlight
Spotlight

I read 3 pages further, it states the Sdj-RIB-Oyt table routes are being advertised. I guess this is done so the neighbor router knows of other poterntial routes.
2.png

see my comment above for your Q.

paul.driver
Level 1
Level 1

Hello

Yes it is the global route table (GRT)

Hello

Yes it is the global route table (GRT)


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

First Thanks to @paul.driver  for his comment.
and @hfakoor222 to be 100 % sure that happened I do small LAB 
R1-R4-R2 AS 100
R2-R3  AS 200
LO 1.1.1.1 in both R1 and R4
mhm1.png

show ip bgp route <- receive the LO route from R1 


Nei1 show route.png

show ip bgp route<- receive the LO route from R4


nei2 show ip route.png

show ip route global


show global.png

apply

route-map OUT 

match permit only LO route that next-hop is R4

route-map.png

 

NOW when apply

 route-map OUT

and check

show ip route 

R3 advertised-route 
I see that there is NO route and that make sense since 

Global RIB contain only best path. 
best path is point to R1 not R4 
I apply

route-map OUT

to filter 
the LO route is missing 
because

route-map OUT

apply to global RIB not Local-RIB receive from R1/R4 i.e. after best path select not before that.
and hence the Adj-RIB-out is show "0" route.

so I hope this lab is answer your Q.

Review Cisco Networking for a $25 gift card