What is IP SLA and why to use it?

ISP failover is the ability to failover from one ISP to another, or more specifically from one route to another, in order to ensure availability and access. In order to facilitate this functionality we must use a feature called IP SLA . IP SLAs sends data across the network to measure reachability between one or more devices across one or more network paths. Should the target become unreachable across the primary network path the second network path (route) can be use.

In the network below there are a total of five routers and two end-user computers. ISP Failover using IP SLA is deployed in order to direct traffic across multiple Internet Service Providers (ISP) in the event of an outage. This allows devices on the network to maintain Internet reachability. When the destination we are tracking (3.3.3.3) becomes unavailable for 30 seconds the IP SLA will determine the primary path is unusable. At that time the second path (route) will become after and traffic will start to flow over the second redundant ISP.

Steps to configure route failover

Step 1: Configure an IP SLA with a target that is pinged every 30 seconds.

R2(config)#track 101 ip sla 101 reachability
!
R2(config)#ip sla 101
R2(config-ip-sla)#icmp-echo 3.3.3.3
!
R2(config)#ip sla schedule 101 life forever start-time now

Step 2: Enable route tracking on the primary route to the Internet.

R2(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.1 track 101
R2(config)#ip route 0.0.0.0 0.0.0.0 2.2.2.2

Verify the configuration

Now that the configuration is finished lets verify our routes. Using the show ip route and traceroute commands you can verify the expected routes in the routing table and verify the network paths used to reach the destination. Use the ping command to verify connectivity. When the primary route goes down and the destination is not reachable R2 will display a message stating the primary route is down. Using traceroute before and after will allow you to verify the route has successfully failed over.


 


1 Comment

Configuring DHCP Server · August 20, 2017 at 8:30 am

[…] NOTE: You can also use IP SLA with route-maps in order to track and failover a route. In this scenario you can avoid specifying a single next-hop in the route-map and instead specify a primary and backup next-hop. The command would look like set ip next-hop 10.2.0.1 10.3.0.1. Without using IP SLA the secondary next-hop will never become active. You can reach more about how to make use of Route Failover using IP SLA here. […]

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Cisco Networking

BGP Load Sharing

What is load sharing and why to use it?Load balancing with BGP is not possible in a multihomed environment with two ISPs. BGP selects only the single best path to a destination among the BGP Read more…

Cisco Firewall

Configuring Dynamic Multipoint VPN and Zone Based Firewall

What is a Dynamic Multipoint VPN and why to use it?DMVPN provides the capability for creating a dynamic-mesh VPN network without having to pre-configure (static) all possible tunnel end-point peers, including IPsec (Internet Protocol Security) Read more…

Cisco Networking

Configuring Layer 2 MPLS VPN

What is a Layer 2 MPLS VPN and why to use it?Layer 2 VPNs are a type of Virtual Private Network (VPN) that uses MPLS labels to transport data. The communication occurs between routers that Read more…