Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Difference between sh ip bgp & sh ip route? BGP tables and main routing table.

Difference between sh ip bgp & sh ip route?

sh ip bgp :::: loc-rib ?

sh ip bgp nei x.x.x.x advertised-routes : adj-rib-in.

sh ip bgp nei x.x.x.x recieved-routes : adj-rib-out.

sh ip bgp nei x.x.x.x routes : loc-rib ?

sh ip route = rib ? if yes does it mean its loc-rib ?

 

so in a given router with bgp running, will there be 5 tables (sh ip bgp; adj-rib-in; loc-rib;adj-rib-out; sh ip route) ? if yes where are they saved ?

 

 

Everyone's tags (1)
3 REPLIES

Hi, sh ip route is showing

Hi,



 

sh ip route is showing you the best routes among all routing protocols plus static and directly connected routes.

sh ip bgp is showing only prefixes contained in BGP database.

That's the basic difference.



 

Regarding the three BGP database sections, see here http://www.tcpipguide.com/free/t_BGPRouteStorageandAdvertisementandBGPRoutingInform-2.htm

for an explanation.




 

Best regards,

Milan




 

Silver

sh ip bgp shows the BGP table

sh ip bgp

shows the BGP table (where are stored info coming from BGP update) 

 

sh ip bgp nei x.x.x.x advertised-routes 

shows networks that your router will advertise to a specific neighbor

 

sh ip bgp nei x.x.x.x recieved-routes 

shows advertisement received from a specific neighbor;  networks (NLRI) filtered with route-map distribute-list,... are included  (Inbound soft reconfiguration must be enabled)

 

sh ip bgp nei x.x.x.x routes 

shows only routes sent by a specific neighbor and not filtered or discarded (i.s accepted)

 

sh ip route 

show routing table; it contains the best route for each network (best is first of all the lowest administrative distance, then the lowest metric)

 

Bye,

enrico.

 

PS please rate if useful

New Member

Take a look at this thread,

Take a look at this thread, it may help you:

https://supportforums.cisco.com/discussion/9882981/bgp-adj-rib-loc-rib-adj-rib-out

1532
Views
0
Helpful
3
Replies
CreatePlease login to create content