BGP Table
Cheat sheet · https://pcornel.dk/topic.php?topic=1135
Answer
The BGP table holds every path BGP has received for each prefix, with its attributes; the best one is marked > and offered to the routing table. show bgp ipv4 unicast shows it — a path in the BGP table is not necessarily in the RIB.
Remember
Status codes at the start of the line: * valid, > best, i learned from iBGP, r not installed in the routing table (RIB-failure). The code at the end of the line is the ORIGIN (i, e, ?) — a different thing. Next hop 0.0.0.0 means this router originated the prefix. The table shows paths after inbound policy; a filtered route is simply absent.
First checks
show ip bgp → one line per path, status codes and attributes. show ip bgp <prefix> → every path for one prefix in detail. show ip bgp neighbors <ip> routes / advertised-routes → what was accepted from, and sent to, one neighbour.
Commands
show ip bgpshow ip bgp <prefix>show ip bgp neighbors <ip> routesshow ip bgp rib-failureshow ip route <prefix>show ip routeshow ip bgp neighborsshow ip bgp networkshow ip bgp neighbors … advertised-routesclear ip bgp <neighbour> soft in
Verify in this order
UPDATE received → inbound policy → path stored in the BGP table → valid (next hop reachable) → best path > → routing table (unless r) → advertised to neighbours
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
BGP Table · routing reference
| Layer | Question |
|---|---|
| Neighbor | Was routing information exchanged? |
| BGP table | Which paths/attributes exist? |
| RIB | Which route source won? |
| CEF | What will forward packets? |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1135