BGP Table Status Codes
Verifying BGP
One of the best commands to verify and troubleshoot your BGP configuration is show ip bgp to see the BGP topology database. This is such an important command that it's worth looking at in depth. The command output lists a table of all the networks BGP knows about, the next hop for each network, some of the attributes for each route, and the AS path for each route. The sample output from this command was taken from an actual Internet BGP peer.
route-server>show ip bgp
BGP table version is 22285573, local router ID is 12.0.1.28
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
* 3.0.0.0 12.123.137.124 0 7018 2914 9304
80 i
*> 12.123.1.236 0 7018 2914 9304
80 i
* 3.51.92.0/23 12.123.137.124 0 7018 ?
* 12.122.125.4 2366 0 7018 ?
*> 12.123.1.236 0 7018 ?
* 8.6.6.0/24 12.123.137.124 0 7018 701 14744
14744 14276 i
* 12.123.145.124 0 7018 701 14744
14744 14276 i
*> 12.123.1.236 0 7018 701 14744
14744 14276 i
Networks are listed in numerical order, smallest to largest. The first three columns list each route's status. An asterisk (*) in the first column means that the route has a valid next hop. Some other options for the first column include the following:
Key BGP Table Status Codes
2. d - Dampened:
3. s - Suppressed:
4. h - History:
5. r - RIB-Failure:
6. S - Stale:
Practical Application
Understanding these codes helps network administrators in multiple ways:
Conclusion
BGP table status codes are an indispensable tool for network administrators, providing critical insights into the state of routes. Mastering these codes allows for effective troubleshooting, optimization, and maintenance of a stable and efficient network infrastructure.
Sources