Directly Connected Neighbor
Cheat sheet · https://pcornel.dk/topic.php?topic=1134
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
| Boundary | Known-good for Directly Connected Neighbor | Suspicious signature | Next proof |
|---|---|---|---|
| Session/input | Correct peer, AF and prefix context | Transport, FSM or prefix eligibility disagrees | Peer detail and exact prefix |
| Attribute/policy | classic 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 policy | the 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 failure | Compare candidate paths and policy |
| Route/forwarding | Expected best path reaches RIB/FIB | BGP state exists but installed path disagrees | RIB/FIB/CEF and next-hop proof |
| Closure | Original test passes for explained reason | Symptom moved, was bypassed or state was forced | Regression/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