BGP Messages & Capabilities Reference
Cheat sheet · https://pcornel.dk/topic.php?topic=246
Answer
BGP runs over TCP port 179 and uses five messages: OPEN starts a session, KEEPALIVE holds it, UPDATE carries routes, NOTIFICATION ends it with a reason, and ROUTE-REFRESH asks for routes again. Optional features are announced as capabilities in the OPEN.
Remember
A TCP connection is only the first step. A feature such as IPv6 or route refresh is used only if both sides listed it in their OPEN — and since capabilities are exchanged only there, changing them needs a session reset.
First checks
show ip bgp summary— state, up time and prefixes per neighbour.show ip bgp neighbors <ip>— negotiated timers and capabilities, advertised and received.show ip bgp neighbors <ip> | section Message statistics— Opens, Notifications, Updates, Keepalives.show tcp brief | include 179— the TCP connection itself.
Commands
show tcp brief
Verify in this order
TCP 179 connects → OPEN exchanged, AS and router ID accepted → capabilities common to both sides in use → KEEPALIVE confirms, Established → UPDATEs exchanged once, then changes → KEEPALIVEs within the hold time
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=246