Pcornel
Networking · Routing › BGP › eBGP

Directly Connected Neighbor

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

Back to the Topic

Answer

A directly connected eBGP neighbor is a peer on the same subnet, which is the default for eBGP (TTL 1). Peering with loopbacks instead needs ebgp-multihop or disable-connected-check and update-source.

Remember

eBGP packets are sent with TTL 1 and the peer address is expected on a connected subnet. Peering between loopbacks therefore needs three things on both routers: a route to the other loopback, update-source Loopback0, and ebgp-multihop 2 (or disable-connected-check when the routers are in fact directly cabled). iBGP has no such limit.

First checks

show ip route <peer> → directly connected for a normal eBGP peering. show ip bgp neighbors <ip> | include hop|connected → how many hops the session allows. ping <peer> source <local peering address> → the link itself.

Commands

show ip route <peer>
show ip bgp neighbors <ip>
ping <peer loopback> source Loopback0

Verify in this order

peer address on a connected subnet → interface up, ARP resolved → TCP 179 with TTL 1 → Established → loopback peering instead: route to the loopback + update-source + ebgp-multihop on both sides

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

Directly Connected Neighbor operational reference

BoundaryKnown-good for Directly Connected NeighborSuspicious signatureNext proof
Session/inputCorrect peer, AF and prefix contextTransport, FSM or prefix eligibility disagreesPeer detail and exact prefix
Attribute/policyclassic directly connected eBGP peering, where peer addressing, connected-route ownership, source interface and default one-hop reachability must align before the BGP session can become useful matches intended policythe peer address resolving through the wrong interface, BGP sourcing from an address the far end did not configure, missing L2 adjacency, TCP SYNs to port 179 without a SYN/ACK, an eBGP session requiring multihop because the peer is not actually directly connected, or a correct underlay followed by an ASN/Open failureCompare candidate paths and policy
Route/forwardingExpected best path reaches RIB/FIBBGP state exists but installed path disagreesRIB/FIB/CEF and next-hop proof
ClosureOriginal test passes for explained reasonSymptom moved, was bypassed or state was forcedRegression/failover test

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

Confirmation

Confirm action

Continue?