Pcornel
Networking · Infrastructure

Single-Homed eBGP

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

Back to the Topic

Answer

Single-homed eBGP is one BGP session to one ISP: you advertise your prefixes and receive a default route or full/partial routes. It gives route control and a path to multihoming later.

Remember

Neighbours must match AS numbers and be reachable (usually directly connected; eBGP TTL 1). network only advertises a prefix that exists exactly in the routing table — add a Null0 static for aggregates. Filter what you send (prefix-list out) so you never advertise others' routes.

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 ip bgp summary
Display BGP peer state and prefix counts.
show ip bgp [prefix]
Inspect BGP paths and attributes.
ping 203.0.113.1 source 203.0.113.2
show bgp ipv4 unicast neighbors
show bgp ipv4 unicast summary
show ip route bgp
show ip bgp

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

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

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

Confirmation

Confirm action

Continue?