NEXT_HOP
Cheat sheet · https://pcornel.dk/topic.php?topic=1138
Answer
NEXT_HOP is the IP address a BGP route says traffic should be sent to. The router must be able to reach it through its routing table; otherwise the path is unusable. iBGP keeps the eBGP next hop unless next-hop-self is set.
Remember
A path whose NEXT_HOP cannot be resolved in the routing table is not usable and is never chosen as best. eBGP sets NEXT_HOP to the advertising router; iBGP leaves it unchanged, so either set next-hop-self on the edge router or carry the external link subnet in the IGP.
First checks
show ip bgp <prefix> → NEXT_HOP per path; look for (inaccessible). show ip route <next-hop> → must resolve to a real route. show ip cef <prefix> → the outgoing interface after recursion.
Commands
neighbor <peer> next-hop-self- Sets the local router as next hop when advertising eligible routes to the peer.
show ip bgp <prefix>show ip route <next-hop>show ip cef <prefix>ping <next-hop>show ip bgpshow ip route
Verify in this order
path received → NEXT_HOP resolves in the RIB (otherwise the path is unusable) → best path → route installed → CEF recursion to interface and adjacency → traffic
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
NEXT_HOP · routing reference
| Layer | Check |
|---|---|
| BGP | NEXT_HOP attribute |
| RIB | Route to next hop |
| CEF | Recursive resolution / adjacency |
| End-to-end | Destination and return path |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1138