Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Dual-Homed eBGP

Direct answer

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).

When to use this

Use it when designing redundant internet connectivity, or when traffic uses the wrong provider or fails over badly.

First 30 seconds

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.

Operational verification

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

Failure signatureDual-homed site uses only one provider, or fails over too slowly

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
Common mistakes
Common mistakes

Do not equate Established with usable prefixes. A session can be healthy while policy filters the route, another path wins, the RIB rejects it, or the selected next hop is unresolved in the data plane.

Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE · IOS/IOS XE
Key commandshow ip bgp summary
Scope / prerequisiteUse it when designing redundant internet connectivity, or when traffic uses the wrong provider or fails over badly.
Show · 2
What next?3 suggested next steps
Catalog command links2
Evidence0
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.

Command lookup Jump straight to Cisco syntax
Key points

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.

Key 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.
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

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

GoalAttributeScope
Outbound traffic preferenceLocal preference / weightYour AS / one router
Inbound traffic preferenceAS-path prepend, MED (same ISP), more-specific prefixes, ISP communitiesOther networks — influence only

Verify both directions

CommandProves
show ip bgp neighbors 192.0.2.1 advertised-routesOnly 198.51.100.0/24 leaves
show ip bgp 0.0.0.0 or a known external prefixBest path via ISP-A, local pref 200
External looking glass for 198.51.100.0/24Path via ISP-B is longer
Shut ISP-A session in a windowOutbound and inbound converge to ISP-B

Inbound engineering is never guaranteed: other networks' local preference beats your prepends.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Depth when you need it

Deep reference

Healthy vs suspicious evidence

How to read the evidence

Verification: Verify the same prefix at received, accepted, best-path, RIB and FIB layers; then verify next-hop resolution and the actual forwarding flow instead of relying on Established alone.

Design & tradeoffs

ENCOR design tradeoffs

Dual homing improves resilience but requires explicit routing policy and failure testing.

Confirmation

Confirm action

Continue?