cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1172
Views
12
Helpful
3
Replies

what is diff betwen "sh ip route bgp & sh ip bgp" command

krahulbgp
Level 1
Level 1

what is diff betwen "sh ip route bgp & sh ip bgp" command

3 Replies 3

Richard Burts
Hall of Fame
Hall of Fame

The difference is subtle but important. bgp keeps track of routes it has learned from neighbor routers. show ip bgp displays that data. show ip route bgp displays routes that have been inserted into the ip routing table by bgp. 

If you see a route in the output of show ip route bgp then that route should also show up in the output of show ip bgp. But it is possible that a route could be in the output of show ip bgp and not be in the output of show ip route bgp. This would be the case if you learned a route from a bgp neighbor and also learned that route from a source with a more attractive Administrative Distance (think especially of a static route) or if there were some filter applied on the bgp neighbor.

HTH

Rick

Show ip bgp show all path include best path 

Show ip bgp route show only best path

Hello
sh ip bgp =  This is the bgp route table , this lists all the bgp local and neighbours routes bgp has learned , of which from here the best of these routes could eventually populate the global route table (GRT)

sh ip route
  = This is the global route table (GRT) of the rtr, all best routes selected from the specific routing process running on the rtr ( OSPF/EIGRP/BGP etc) as populated into this table.


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