Use it when designing redundant internet connectivity, or when traffic uses the wrong provider or fails over badly.
Dual-Homed eBGP
Dual-homed eBGP connects to two ISPs (or two links to one ISP) for redundancy. BGP policy decides which link carries outbound traffic (local preference, weight) and influences inbound traffic (AS-path prepending, MED, more-specific prefixes).
1. show ip bgp summary — both sessions Established?
2. show ip bgp neighbors <isp> advertised-routes — only your own prefixes to each ISP?
3. Outbound: show ip bgp <dest> — best path via the preferred ISP (local preference)?
4. Inbound: check from outside (looking glass) that the primary path is preferred.
5. Shut one session — traffic moves to the other within the expected time.
two eBGP sessions up → only own prefixes advertised → local preference picks the outbound exit → prepending/MED shapes inbound → failure of one ISP moves traffic to the other
All traffic uses one provider even though both sessions are up, or a provider outage takes minutes to bypass.
Possible stored cause: One session is not established or has no routes, or local preference/AS-path policy does not express the intended primary/backup design.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip bgp summaryShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show ip bgp summaryShowDisplay BGP peer state and prefix counts.
Use when: Determine BGP FSM/session health quickly.
Quick note: If not Established, stay at transport/session prerequisites.
Cisco IOS XE · control planeshow ip bgp [prefix]ShowInspect BGP paths and attributes.
Use when: Best-path/policy analysis.
IOS/IOS XE · mixed · verifiesVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
All traffic uses one provider even though both sessions are up, or a provider outage takes minutes to bypass.
Step 1 Verification & evidence Verify boundary
show ip bgp summary; show ip bgp <prefix>; inspect local preference, AS path and route maps/prefix lists.
Step 2 Commands & verification Verify boundary
show ip bgp— Inspect BGP paths and attributes.show ip bgp summary— Check BGP neighbor session state and prefix counts.
Path: Networking → Infrastructure → Dual-Homed eBGP. Local intent: Redundant external connectivity and the policy implications of multiple upstream paths.
Step 3 Common failure modes Narrow the fault
One peer not established, asymmetric policy, accepting/advertising unintended prefixes or no deterministic preference.
Step 4 Troubleshooting workflow Narrow the fault
Focus for this topic: One peer not established, asymmetric policy, accepting/advertising unintended prefixes or no deterministic preference.
Never become a transit AS: advertise only your own prefixes (ip as-path access-list permitting ^$ or a prefix-list out). Outbound: set local preference on routes from the preferred ISP. Inbound: prepend on the backup link; providers may honour communities. Test failover by shutting each session.
ReferenceWhat it is1 section · depth on demand
Concept overview
Redundant external connectivity and the policy implications of multiple upstream paths.
Key ideas: Multiple eBGP sessions provide alternative paths; inbound/outbound policy and local routing design determine preference and failover.
ReferenceWhy it matters1 section · depth on demand
Why it matters
Multiple eBGP sessions provide alternative paths; inbound/outbound policy and local routing design determine preference and failover.
ReferenceHow it works1 section · depth on demand
How it works
BGP first needs IP/TCP reachability to the peer, then the BGP finite-state machine establishes a session. Prefixes are received or originated, policy changes their eligibility/attributes, best-path selection chooses a candidate, the RIB decides whether it installs, and forwarding depends on recursive next-hop resolution.
ReferenceImportant terms & boundaries2 sections · depth on demand
Important terms and limits
Important terms: neighbor, remote AS, address family, NLRI/prefix, next hop, Weight, Local Preference, AS_PATH, origin, MED, eBGP/iBGP, best path, RIB and recursive next hop.
In depth
Worked dual-ISP policy (one router, two eBGP sessions)
ip prefix-list OUR-PREFIX seq 5 permit 198.51.100.0/24
ip as-path access-list 1 permit ^$
!
route-map ISP-A-IN permit 10
set local-preference 200 ! prefer ISP-A for outbound traffic
route-map ISP-B-OUT permit 10
match ip address prefix-list OUR-PREFIX
set as-path prepend 65010 65010 ! make inbound via ISP-B less attractive
!
router bgp 65010
neighbor 192.0.2.1 remote-as 64500 ! ISP-A
neighbor 203.0.113.1 remote-as 64501 ! ISP-B
address-family ipv4
network 198.51.100.0 mask 255.255.255.0
neighbor 192.0.2.1 route-map ISP-A-IN in
neighbor 192.0.2.1 prefix-list OUR-PREFIX out
neighbor 192.0.2.1 filter-list 1 out
neighbor 192.0.2.1 maximum-prefix 1100000 90 warning-only
neighbor 203.0.113.1 route-map ISP-B-OUT out
neighbor 203.0.113.1 filter-list 1 out
^$ permits only locally originated routes, so the network never becomes transit between the two ISPs — one of the outbound filters RFC 7454 recommends. The network statement needs an exact match in the RIB (often a Null0 static for the aggregate).
Which knob moves which direction
| Goal | Attribute | Scope |
|---|---|---|
| Outbound traffic preference | Local preference / weight | Your AS / one router |
| Inbound traffic preference | AS-path prepend, MED (same ISP), more-specific prefixes, ISP communities | Other networks — influence only |
Verify both directions
| Command | Proves |
|---|---|
show ip bgp neighbors 192.0.2.1 advertised-routes | Only 198.51.100.0/24 leaves |
show ip bgp 0.0.0.0 or a known external prefix | Best path via ISP-A, local pref 200 |
| External looking glass for 198.51.100.0/24 | Path via ISP-B is longer |
| Shut ISP-A session in a window | Outbound and inbound converge to ISP-B |
Inbound engineering is never guaranteed: other networks' local preference beats your prepends.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Infrastructure → Dual-Homed eBGP. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Deep reference
Healthy vs suspicious evidence
How to read the evidence
Design & tradeoffs
ENCOR design tradeoffs
Dual homing improves resilience but requires explicit routing policy and failure testing.