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