Viewing Your Border Gateway Protocol (BGP) Routing Table

By Edward Tetz

Once you have Border Gateway Protocol (BGP) properly set up, you are able to see the routes listed in the routing table. The following shows the BGP routes in the routing table identified with a B.

In addition to seeing where the route goes and how it gets there, you also see how long your router has known about that route, which is important, because if the link has been down or offline recently, this time will be very short.

Router2#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router2#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
C is directly connected, FastEthernet0/1
B [20/0] via, 5d15h
C is directly connected, Loopback0
C is directly connected, FastEthernet0/0
S [1/0] via