Configure IP SLA Tracking and Path Control: Lab Topology
Configure IP SLA Tracking and Path Control: Lab Topology
Configure IP SLA Tracking and Path Control: Lab Topology
PNETLAB Store
PNETLab.com
Lab Topology:
https://user.pnetlab.com/store/labs/detail?id=16037342007891
Objectives:
§ Configure and verify the IP SLA feature.
§ Test the IP SLA tracking feature
1
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Task:
1. Configure loopbacks and assign addresses
2. Configure static route
3. Configure IP SLA probes
4. Configure tracking options
5. Verify IP SLA operation
Solution:
Task 1: Configure loopbacks and assign addresses
R1 ISP1 ( R2) ISP2 (R3)
hostname R1 hostname ISP1 hostname ISP2
interface Loopback 0 interface Loopback0 interface Loopback0
description R1 LAN description Simulated description Simulated
ip address 192.168.1.1 Internet Web Server Internet Web Server
255.255.255.0 ip address 209.165.200.254 ip address 209.165.200.254
! 255.255.255.255 255.255.255.255
interface e0/0 ! !
description R1 --> ISP1 interface Loopback1 interface Loopback1
ip address description ISP1 DNS Server description ISP2 DNS Server
209.165.201.2 ip address 209.165.201.30 ip address 209.165.202.158
255.255.255.252 255.255.255.255 255.255.255.255
bandwidth 128 ! !
no shutdown interface e0/0 interface e0/0
! description ISP1 --> R1 description ISP2 --> R1
interface e0/1 ip address 209.165.201.1 ip address 209.165.202.129
description R1 --> ISP2 255.255.255.252 255.255.255.252
ip address bandwidth 128 bandwidth 128
209.165.202.130 no shutdown no shutdown
255.255.255.252 ! !
bandwidth 128 interface e0/1 interface e0/1
no shutdown description ISP1 --> ISP2 description ISP2 --> ISP1
ip address 209.165.200.225 ip address 209.165.200.226
255.255.255.252 255.255.255.252
bandwidth 128 bandwidth 128
no shutdown no shutdown
2
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Et0/0 up up R1-ISP1
Et0/1 up up R1-ISP2
Lo0 up up R1 LAN
ISP 1 ISP2
3
Download PNETLab Platform
PNETLAB Store
PNETLab.com
! !
R1(config)# ip sla 11
R1(config-ip-sla-echo)# frequency 10
R1(config-ip-sla-echo)# exit
The operation number of 11 is only locally significant to the router. The frequency
10 command schedules the connectivity test to repeat every 10 seconds. The
probe is scheduled to start now and to run forever.
Although not actually required because IP SLA session 11 alone could provide the
desired fault tolerance, create a second probe, 22, to test connectivity to the
second DNS server located on router ISP2:
R1(config)# ip sla 22
R1(config-ip-sla-echo)# frequency 10
R1(config-ip-sla-echo)# exit
R1(config)# end
4
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Verify the new probe using the show ip sla configuration and show ip sla
statistics commands:
Entry number: 22
Owner:
Tag:
Verify data: No
Vrf Name:
Schedule:
5
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Distribution Statistics:
History Statistics:
Enhanced History:
Number of successes: 82
Number of failures: 0
6
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Number of successes: 51
Number of failures: 0
To view routing table changes as they happen, first enable the debug ip
routing command.
Jan 10 10:45:39.119: RT: closer admin distance for 0.0.0.0, flushing 1 routes
Jan 10 10:45:39.119: RT: add 0.0.0.0/0 via 209.165.201.1, static metric [2/0]
7
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Notice that the default route with an administrative distance of 5 has been
immediately flushed because of a route with a better admin distance. It then adds
the new default route with the admin distance of 2. Repeat the steps for
operation 22:
R1(config-track)# exit
R1(config)#
8
Download PNETLab Platform
PNETLAB Store
PNETLab.com
ISP1(config-if)# shutdown
Ø On R1, observe the debug output being generated. Recall that R1 will wait
up to 10 seconds before initiating action therefore several seconds will
elapse before the output is generated:
R1#
Jan 10 10:53:59.551: RT: del 0.0.0.0 via 209.165.201.1, static metric [2/0]
9
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Jan 10 10:53:59.551: RT: add 0.0.0.0/0 via 209.165.202.129, static metric [3/0]
The tracking state of track 1 changes from up to down. On R1, verify the routing
table:
10
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Number of failures: 45
11
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Number of failures: 0
12