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 220.127.116.11 Routing entry for 18.104.22.168/20, supernet Known via "bgp 65000", distance 20, metric 0 Tag 7018, type external Last update from 22.214.171.124 1d17h ago Routing Descriptor Blocks: * 126.96.36.199, from 188.8.131.52, 1d17h ago Route metric is 0, traffic share count is 1 AS Hops 5 Route tag 7018From the above output, the route to Yahoo (184.108.40.206 in this case) is known via an external BGP peer. As this is the ONLY route to the destination, this is the preferred route.