06-03-2022 10:58 PM
what is diff betwen "sh ip route bgp & sh ip bgp" command
06-04-2022 12:04 AM
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.
06-04-2022 03:04 AM
Show ip bgp show all path include best path
Show ip bgp route show only best path
06-05-2022 06:51 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide