eBGP
Cheat sheet · https://pcornel.dk/topic.php?topic=639
Answer
eBGP is a BGP session between routers in different autonomous systems — how separate organisations exchange routes. The neighbour is normally directly connected, the sender adds its AS to the path and sets itself as next hop, and received routes have administrative distance 20.
Remember
An Established session says little: check what is advertised and what is received. A network statement needs an exactly matching route in the routing table. With two providers, filter outbound — otherwise one provider's routes are announced to the other.
First checks
show ip bgp summary— state and prefixes received.show ip bgp neighbors <ip> advertised-routes— what you announce.show ip bgp neighbors <ip> routes— what you accept.show ip bgp <prefix>— AS path, next hop, best.show ip route bgp— installed routes.
Commands
show bgp ipv4 unicast summary- BGP peer state and prefix counts.
show ip bgp summary- Display BGP peer state and prefix counts.
address-family ipv4 unicast- Enter the IPv4 unicast address family under an OSPFv3 process.
router bgp <asn>- Start a BGP process for the local AS.
neighbor <ip> remote-as <asn>- Define a BGP neighbor and its autonomous system number.
neighbor <ip> description <text>- Add a description to a BGP neighbor.
network <prefix> mask <mask>- Advertise an exact prefix into BGP; the prefix must exist in the routing table.
neighbor <ip> activate- Activate a BGP neighbor for the address family.
show ip bgp- Display the BGP table with best paths.
show bgp ipv4 unicast- Display the BGP IPv4 unicast table.
show ip bgp neighbors- Display detailed BGP neighbor state and counters.
show ip route bgp- Display BGP routes installed in the routing table.
clear ip bgp <neighbor> soft- Refresh BGP routes with a neighbor using route refresh, without resetting the session.
show ip bgp neighbors <peer>show ip bgp <network> <mask>show ip route <destination>
Verify in this order
neighbour reachable (directly connected or multihop) → remote AS matches → Established → own prefixes in BGP and permitted outbound → advertised → neighbour's prefixes accepted inbound → installed with distance 20
Where it usually breaks
transport or OPEN failure → wrong family → missing/filtered prefix → path eligibility/selection → RIB competition or recursion → downstream/return path
eBGP · reference boundaries
| BGP boundary | Healthy reference | Canonical evidence |
|---|---|---|
| Session | Intended peer Established | show ip bgp summary |
| NLRI/path | Expected prefix and attributes present | show ip bgp <prefix> |
| RIB | Intended BGP path installed if eligible | show ip route <prefix> |
| FIB | Next hop resolves into usable forwarding state | show ip cef <prefix/destination> |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=639