Professional Documents
Culture Documents
IP SLA With Tracking Configuration: Cisco Ccna
IP SLA With Tracking Configuration: Cisco Ccna
Above we have a router (R1) that is connected to two ISPs. We want to use ISP1 as the primary and
ISP2 as the backup link. All traffic will be sent towards ISP1 but when it’s unreachable we’ll switch
over to ISP2. You can achieve this by using two default routes:
As we see in above we are using the floating Static route that is top one has
AD=1 for static route and 2nd one the AD=50 , so when I go to
R1#show ip route
IP SLA with Tracking Configuration
I will see the top commands on the routing tables
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
R1#ping 192.168.12.2
R1#ping 192.168.13.3
Now If I go to R1 and shut down the f0/0 (which is connected to ISP1) then since I have the
Floating point the R1 #show ip route will be pointed to ISP2
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int f0/0
R1(config-if)#shut
IP SLA with Tracking Configuration
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
As we see in above now R1 goes to internet via ISP2 , which is called the floating point----
But what happen if the link on ISP1 goes than ; then R1 in his table still will have original route to ISP1=192.168.12.2
so in here we will use the concept of Ip SLA with adding the track on the static route of R1
IP SLA with Tracking Configuration
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int f0/0
R1(config-if)#no shut
IP SLA with Tracking Configuration
R1#show ip int brief
Step 1) I will create an IP SLA instance that pings the IP address of the ISP1
router:
R1(config)#ip sla 1
R1(config-ip-sla)#
IP SLA with Tracking Configuration
R1(config-ip-sla)#?
IP SLAs entry configuration commands:
dhcp DHCP Operation
dns DNS Query Operation
ethernet Ethernet Operations
exit Exit Operation Configuration
frame-relay Frame-relay Operation
ftp FTP Operation
http HTTP Operation
icmp-echo ICMP Echo Operation
icmp-jitter ICMP Jitter Operation
path-echo Path Discovered ICMP Echo Operation
path-jitter Path Discovered ICMP Jitter Operation
tcp-connect TCP Connect Operation
udp-echo UDP Echo Operation
udp-jitter UDP Jitter Operation
voip Voice Over IP Operation
IP SLA with Tracking Configuration
R1(config-ip-sla)#?
IP SLAs entry configuration commands:
dhcp DHCP Operation
dns DNS Query Operation
ethernet Ethernet Operations
exit Exit Operation Configuration
frame-relay Frame-relay Operation
ftp FTP Operation
http HTTP Operation
icmp-echo ICMP Echo Operation
icmp-jitter ICMP Jitter Operation
path-echo Path Discovered ICMP Echo Operation
path-jitter Path Discovered ICMP Jitter Operation
tcp-connect TCP Connect Operation
udp-echo UDP Echo Operation
udp-jitter UDP Jitter Operation
voip Voice Over IP Operation
IP SLA with Tracking Configuration
Now we will use the same concept as before that is icmp-echo
R1(config-ip-sla-echo)#frequency ?
<1-604800> Frequency in seconds (default 60)
R1(config-ip-sla-echo)#frequency 20 ?
<cr>
R1(config-ip-sla-echo)#frequency 20
IP SLA with Tracking Configuration
R1#show run
ip sla 1
icmp-echo 192.168.12.2
frequency 20
IP SLA with Tracking Configuration
R1#
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip sla
R1(config)#ip sla ?
<1-2147483647> Entry Number
IP SLA with Tracking Configuration
enable Enable Event Notifications
ethernet-monitor IP SLAs Auto Ethernet configuration
group Group Configuration or Group Scheduling
key-chain Use MD5 authentication for IP SLAs Control Messages
logging Enable Syslog
low-memory Configure Low Water Memory Mark
reaction-configuration IP SLAs Reaction-Configuration
reaction-trigger IP SLAs Trigger Assignment
reset IP SLAs Reset
responder Enable IP SLAs Responder
restart Restart An Active Entry
schedule IP SLAs Entry Scheduling
IP SLA with Tracking Configuration
R1#show run
ip sla 1
icmp-echo 192.168.12.2
frequency 20
ip sla schedule 1 life forever start-time now
IP SLA with Tracking Configuration
let’s check with show commands
life is good now
R1#
R1#
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#trac
R1(config)#track 1 ?
interface Select an interface to track
ip IP protocol
list Group objects in a list
stub-object Stub tracking object
IP SLA with Tracking Configuration
R1(config)#track 1 ip ?
route IP route
sla IP Service Level Agreement
R1(config)#track 1 ip sla ?
<1-2147483647> Entry number
R1(config)#track 1 ip sla 1 ?
reachability Reachability
state Return code state
<cr>
IP SLA with Tracking Configuration
R1(config)#track 1 ip sla 1 re
R1(config)#track 1 ip sla 1 reachability ?
<cr>
!
!
!
ip sla 1
icmp-echo 192.168.12.2 ( this is IP address of Main ISP1 that I am looking )
frequency 20
ip sla schedule 1 life forever start-time now
!
IP SLA with Tracking Configuration
Now we will test it
That is if ISP1=f0/0=192.168.12.2 goes down ; then when I go to R1#show ip route I will see the routing table
has been changed to the new one
ISP1#config t
Enter configuration commands, one per line. End with CNTL/Z.
ISP1(config)#int f0/0
ISP1(config-if)#shut
ISP1(config-if)#
IP SLA with Tracking Configuration
Now I will go to R1#show ip route and see the routing table should point to ISP2=192.168.13.3
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
ISP1#config t
Enter configuration commands, one per line. End with CNTL/Z.
ISP1(config)#int f0/0
ISP1(config-if)#no shut
ISP1(config-if)#
IP SLA with Tracking Configuration
Now I go back to R1#show ip route and check the work
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
!
!
!
ip sla 1
icmp-echo 192.168.12.2 ( this is pointed to Main ISP1 =primary)
frequency 20
ip sla schedule 1 life forever start-time now
ASM Educational Center Inc. (ASM)
Where Training, Technology & Service Converge
To watch our Cisco CCNA Video Trainings Please Check out the link below:
www.asmed.com/c1
Phone: (301) 984-7400
Rockville,MD