GNS3 and IP SLA with default route tracking

Home > Blogs > Cisco > GNS3 and IP SLA with default route tracking

GNS3 and IP SLA with default route tracking

1 1 Mark Jacob
Added by December 27, 2013

As I have mentioned before, I am a big fan of GNS3. I also said that I would be posting GNS3 labs from time to time with an eye toward gaining skill in the CCNA R&S arena, as well as the CCNP track. If you don’t have GNS3, go to the The GNS3 download page to get it. Without further ado, here is today’s learning experience.

One really cool thing that Cisco devices (routers – in this blog) can do is to perform various scheduled network status checks. What I want to do today is show how you can use an IP SLA together with a tracking object to make routing decisions based on downstream availability.

I have built the scenario shown here:


As noted on the diagram shown above, R3 has an ip sla configured (number 10). It is scheduled to verify reachability to the loopback interface that is on R1 by pinging it. R3 is then tracking this ip sla. The tracking returns a result of either true or false, depending upon whether or not the ping was successful. There is a default route configured on R3 which is present in the routing table contingent upon the status of the tracking (object 1). If the target address becomes unreachable (for instance, if you log into R1 and shutdown the Loopback 0 interface), the result of the tracking will switch from true to false, and the default route will disappear from the routing table. Here is what show ip route looks like on R3 if tracking it true:


As you can see, the Gateway of last resort exists, as well as a candidate default route as shown at the bottom of the output.

Now I will log in to R1 and shutdown interface Loopback 0, the target IP address, and then view the routing table on R3 again. Let’s see the difference.


First off, you note that the change in network topology, which was being tracked, was noticed by R3. This caused the conditional default route to disappear from the routing table. Notice in the output of show ip route on R3 that the gateway of last resort is no longer set, and the candidate quad-zero default route is no longer in the output. This shows one of the powerful capabilities offered by ip sla and tracking.

I have provided all the files necessary for you to build this scenario for yourself. I hope you enjoy this lab, and if you discover any suggestions or have any suggestions, I would love to hear from you.

The zipped files are available here: Feel free to experiment with the configurations and shoot me any suggestions you may have on changing it up or improving it. I will continue to post GNS3 scenarios in future blogs. If there is a scenario you would like to see, leave a comment and I will work on creating it.

Mark Jacob
Cisco Instructor – Interface Technical Training
Phoenix, AZ

Videos You May Like

Agile Methodology in Project Management

0 153 0

In this video, you will gain an understanding of Agile and Scrum Master Certification terminologies and concepts to help you make better decisions in your Project Management capabilities. Whether you’re a developer looking to obtain an Agile or Scrum Master Certification, or you’re a Project Manager/Product Owner who is attempting to get your product or … Continue reading Agile Methodology in Project Management

JavaScript for C# Developers – September 24, 2014

0 487 3

Is JavaScript worth taking the time to learn if I’m a server-side .NET developer? How much of C# carries over to JavaScript? In this recorded video from Dan Wahlin’s webinar on September 24,2014, Dan answers these questions and more while also discussing similarities between the languages, key differences, and the future of JavaScript (ES6). If … Continue reading JavaScript for C# Developers – September 24, 2014

Detailed Forensic Investigation of Malware Infections – April 21, 2015

4 608 5

How does an investigator hunt down and identify unknown malware? In this recording of our IT Security training webinar on April 21, 2015, Security expert Mike Danseglio (CISSP / CEH) performed several malware investigations on infected computers and identify symptoms, find root cause, and follow the leads to determine what’s happening. He demonstrated his preferred … Continue reading Detailed Forensic Investigation of Malware Infections – April 21, 2015

Write a Comment

See what people are saying...

  1. Avatar emmanuel thompson

    not really a comment, thanks for the hard work I found it very helpful me.

Share your thoughts...

Please fill out the comment form below to post a reply.