BGP Protocol Reference
Cheat sheet · https://pcornel.dk/topic.php?topic=6248
Answer
BGP exchanges routes between networks over TCP sessions that are configured by hand. Each route carries attributes, policy decides what is accepted and advertised, and one best path per prefix is chosen. The topics here cover its messages, attributes and decision process.
Remember
Work through the pipeline: session, received, accepted by policy, best path, installed, advertised. A number under State/PfxRcd means Established. The next hop must be reachable or the path is unusable. Routes learned from one iBGP peer are not passed to another without a route reflector.
First checks
show bgp ipv4 unicast summary— each neighbour with state or prefixes received.show bgp ipv4 unicast neighbors <ip>— state, last reset reason, capabilities, timers.show bgp ipv4 unicast <prefix>— all paths, attributes, and which is best and why not the others.show bgp ipv4 unicast neighbors <ip> advertised-routes— what is sent.show bgp ipv4 unicast neighbors <ip> routes— what was accepted.show ip route bgp— what reached the routing table.
Verify in this order
TCP to the peer → OPEN accepted → Established → UPDATE received → inbound policy → best path chosen → next hop reachable → installed in the routing table → outbound policy → advertised
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6248