Dual-ISP internet edge on a Cisco router: failover, NAT with two providers and load sharing
In short: With two internet providers and no BGP, each provider gives you its own public addresses. Traffic leaving through ISP A must be translated to ISP A's address, and traffic through ISP B to ISP B's. Route maps on NAT rules make this happen, IP SLA tracking handles failover, and policy routing or SD-WAN can share load.
The design
A typical small or branch site has two broadband or fibre lines from different providers. You do not have your own public IP block or AS number, so BGP is not an option. Each ISP gives you one or a few public addresses. The two challenges are failing over cleanly and making sure NAT uses the right public address for the link a packet leaves through. If a packet goes out ISP B with ISP A's source address, ISP B will usually drop it, and even if it does not, the reply will come back through ISP A.
Failover routing
ip sla 1
icmp-echo 1.1.1.1 source-interface GigabitEthernet0/0
frequency 5
ip sla schedule 1 life forever start-time now
track 1 ip sla 1 reachability
delay down 10 up 60
!
ip route 0.0.0.0 0.0.0.0 198.51.100.1 track 1
ip route 0.0.0.0 0.0.0.0 203.0.113.1 10
ip route 1.1.1.1 255.255.255.255 198.51.100.1
ISP A (Gi0/0, next hop 198.51.100.1) is primary. ISP B (Gi0/1, next hop 203.0.113.1) floats in with distance 10 when the track fails.
NAT with route maps
A plain ip nat inside source list ... interface ... overload rule can only point at one interface. With two ISPs you write one rule per ISP, each matched by a route map that checks the exit interface:
ip access-list standard LAN
permit 10.10.0.0 0.0.255.255
!
route-map NAT-ISP-A permit 10
match ip address LAN
match interface GigabitEthernet0/0
route-map NAT-ISP-B permit 10
match ip address LAN
match interface GigabitEthernet0/1
!
ip nat inside source route-map NAT-ISP-A interface GigabitEthernet0/0 overload
ip nat inside source route-map NAT-ISP-B interface GigabitEthernet0/1 overload
Mark the LAN interface ip nat inside and both ISP interfaces ip nat outside. After a failover, existing translations for ISP A remain in the table and break those sessions, so add ip nat translation timeout tuning or clear translations with an EEM script when the track changes. Users usually just see a page reload.
Sharing the load
- Two equal default routes (ECMP) send different flows out each link. It works, but you cannot control which applications use which link.
- Policy-based routing can send guest Wi-Fi out ISP B and staff out ISP A, each protected by tracking.
- SD-WAN measures loss, latency and jitter on both links and picks the best one per application. This is the modern answer for multi-site businesses.
- BGP multihoming needs provider-independent addresses and an AS number, and is covered in the BGP internet edge note.
Inbound services
Port-forwarded services such as a VPN or a web server answer on one ISP's public address. Publish both addresses in DNS with a short TTL, or use a cloud DNS failover service, so clients can reach you when one link is down.
Real-world example: the clinic with "random" outages
A medical clinic added a second ISP and configured two default routes. Some websites worked, others timed out, and the problem seemed random. The router had a single NAT rule that always used ISP A's address, so flows that left through ISP B were dropped by that provider's anti-spoofing filter. Splitting NAT into two route-map rules fixed it immediately.
Practice
Why does each ISP need its own NAT rule?
Which route-map match command makes a NAT rule depend on the exit interface?
match interface <exit interface>.Name two ways to use both links at the same time.
Key takeaways
- Without BGP, each ISP gives its own public addresses.
- Use IP SLA tracking for failover and a floating route for the backup.
- Write one NAT rule per ISP with a route map matching the exit interface.
- PBR, ECMP or SD-WAN can share load across both links.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.