This site requires JavaScript for navigation. Please enable JavaScript for the best learning experience.

The show ip route command shows you which BGP routes have made it to the IP routing table. BGP is NOT used to make forwarding decisions on data, it is used to learn the single best path to a destination network. To do this, BGP listens for routes and advertises the best routes it knows. BGP also places the best route it knows for each destination (prefix) into the IP routing table. A Cisco router uses the Best Path Selection Algorithm to select the single best route to a destination and then inserts it into the IP routing table.

To check a router's IP routing table for a given destination (such as Yahoo), simply use the show ip route command:

route-server>show ip route
   Routing entry for, supernet
 Known via "bgp 65000", distance 20, metric 0
 Tag 7018, type external
 Last update from 1d17h ago
 Routing Descriptor Blocks:
 *, from, 1d17h ago
 Route metric is 0, traffic share count is 1
 AS Hops 5
 Route tag 7018
From the above output, the route to Yahoo ( in this case) is known via an external BGP peer. As this is the ONLY route to the destination, this is the preferred route.

Bookmark this page and SHARE:  


Support InetDaemon.Com

Get Tutorials in your INBOX!

Free Training