Pcornel
Networking · Routing › BGP

BGP Fundamentals

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

Back to the Topic

Answer

BGP exchanges reachability and path attributes over TCP port 179. eBGP normally connects different autonomous systems; iBGP distributes BGP reachability between speakers in the same AS. The transport route, selected BGP path, routing-table entry and forwarding adjacency are separate states.

Remember

Established proves a BGP session, not a required NLRI, acceptable policy, RIB installation or packet delivery. A best marker is local BGP selection. CEF output proves local programming at inspection time; successful delivery still needs a bounded flow and return-path check.

First checks

show ip bgp summary
show ip bgp neighbors
show ip bgp 203.0.113.0/24
show ip bgp rib-failure
show ip route bgp
show ip route 203.0.113.0
show ip cef 203.0.113.0/24

Start with peer state, inspect the exact path and next hop, then RIB and CEF. Use the full routing table for the prefix as well as the BGP-filtered view: the installed winner may be a static or IGP route.

Verify in this order

transport → session/AF → accepted path → next-hop resolution → best path → RIB → CEF → bounded traffic

Where it usually breaks

  • Active/Connect: inspect source address, transport routes, TCP 179 filtering and reciprocal neighbor configuration.
  • Established with zero prefixes: inspect AF activation, origination and directional policy.
  • Candidate without valid/best marker: inspect next-hop resolution and competing paths.
  • RIB-failure: inspect the winning route and administrative distance; distinguish it from an unreachable next hop.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6112

Confirmation

Confirm action

Continue?