BGP - The BGP Table

The BGP table is a construct that is created within each BGP router that is used to store, categorize, and maintain all of the BGP-learned routes that a BGP router has been informed of using BGP updates from its peers. This table can be viewed and can be used to see which path the router has chosen as the best path, and which BGP attributes have been used to determine this.

The following is an example of the output of a BGP table:

R1#show ip bgp BGP table version is 2, local router ID is 192.168.13.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path * 4.4.4.4/32 192.168.13.3 0 3 4 i *> 192.168.12.2 0 2 4 i

The various attributes including weight, local preference, origin code, AS path length, MED and others can all be seen in the table, concerning all of the learned routes, as well as the route that was chosen as the best path.

Links:

https://networklessons.com/bgp/how-to-read-the-bgp-table