Pcornel
Networking · Routing › BGP › BGP Fundamentals

BGP Table

Cheat sheet · https://pcornel.dk/topic.php?topic=1135

Back to the Topic

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 bgp
show ip bgp <prefix>
show ip bgp neighbors <ip> routes
show ip bgp rib-failure
show ip route <prefix>
show ip route
show ip bgp neighbors
show ip bgp network
show ip bgp neighbors … advertised-routes
clear 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

LayerQuestion
NeighborWas routing information exchanged?
BGP tableWhich paths/attributes exist?
RIBWhich route source won?
CEFWhat 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

Confirmation

Confirm action

Continue?