Troubleshooting notes · BGP
eBGP neighbour on a loopback stays Idle: ebgp-multihop
An eBGP session between loopback addresses never comes up. How show ip bgp neighbors tells you why, and what ebgp-multihop changes. Real output from Cisco IOS XE 17.18.
The symptom
You peer with the ISP between loopback addresses, and the session stays Idle. IOS tells you why in plain words:
R2# show ip bgp neighbors 3.3.3.3 | include BGP state|External
BGP state = Idle, down for never
External BGP neighbor not directly connected.
External BGP neighbor configured for connected checks (single-hop no-disable-connected-check)
Why it happens
eBGP assumes the neighbour is directly connected. IOS checks that the neighbour's address is on a connected network, and it sends BGP packets with a TTL of 1. A loopback on another router isn't connected, so the session never starts.
The fix
Allow more hops to the neighbour (here 2: R2's interface, then the ISP router):
R2(config-router)# neighbor 3.3.3.3 ebgp-multihop 2
Afterwards, show ip bgp neighbors 3.3.3.3 says External BGP neighbor may be up to 2 hops away and Outgoing TTL 2.
Peering between loopbacks also needs two more things on both sides: neighbor … update-source Loopback0, so the session comes from the loopback address, and a route to the other side's loopback (here a static route).
Practise this fault
This fault is in ENARSI Lab 21, one of the free labs: a ready-made GNS3 project where you find and fix it yourself, with the tested solution. Get it with 14 more free labs, by email:
We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.