24.1.6 Lab - Implement IP SLA - ILM - Student (1)
24.1.6 Lab - Implement IP SLA - ILM - Student (1)
Topology
Addressing Table
Device Interface IPv4 Address/Mask IPv6 Address/Prefix IPv6 Link Local
R1 G0/0/0 172.16.12.1/24 2001:db8:acad:12::1/64 fe80::1:1
R1 G0/0/1 172.16.1.1/24 2001:db8:acad:1721::1/64 fe80::1:2
R2 G0/0/0 172.16.12.2/24 2001:db8:acad:12::2/64 fe80::2:1
R2 G0/0/1 172.16.24.2/24 2001:db8:acad:23::2/64 fe80::2:2
R2 Loopback 0 192.168.1.1/24 2001:db8:acad:1000::1/64 fe80::2:3
R3 G0/0/0 172.16.23.3/24 2001:db8:acad:23::3/64 fe80::3:1
R3 G0/0/1 172.16.3.1/24 2001:db8:acad:1723::1/64 fe80::3:2
D1 G1/0/11 172.16.1.2/24 2001:db8:acad:1721::2/64 fe80::d1:1
D1 VLAN 2 10.0.2.1/24 2001:db8:acad:2::1/64 fe80::d1:2
D1 VLAN 3 10.0.3.1/24 2001:db8:acad:3::1/64 fe80::d1:3
D2 G1/0/11 172.16.3.2/24 2001:db8:acad:23::3/64 fe80::d2:1
D2 VLAN 2 10.0.2.2/24 2001:db8:acad:2::2/64 fe80::d2:2
D2 VLAN 3 10.0.3.2/24 2001:db8:acad:3::2/64 fe80::d2:3
A1 VLAN 2 10.0.2.3/24 2001:db8:acad:2::3/64 fe80::a1:1
PC 1 NIC DHCP SLAAC EUI-64
PC 2 NIC DHCP SLAAC EUI-64
© 2020 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 7 www.netacad.com
Lab - Implement IP SLA
Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Configure and Observe IP SLA Operations
Part 3: Configure and Observe HSRP IP SLA Tracking
Background / Scenario
Cisco IP service level agreements (SLAs) allow users to monitor network performance between Cisco devices (switches or
routers), or from a Cisco device to a remote IP device. Cisco IP SLAs can be applied to VoIP and video applications as well as
monitoring end-to-end IP network performance.
Note: This lab is an exercise in deploying and verifying IP SLAs and does not necessarily reflect networking best practices. The
IP SLA itself is an additional task that must be performed by the switch CPU. A large number of intensive SLAs could create a
significant burden on the CPU, possibly interfering with other switch functions and having detrimental impact on the overall
device performance. Therefore, you should carefully evaluate the benefits of running IP SLAs. The CPU load should be
monitored after the SLAs are deployed to verify that they do not stress the device’s CPU above safe limits.
Note: The default Switch Database Manager (SDM) template on a Catalyst 2960 does not support IPv6. You must change the
default SDM template to the dual-ipv4-and-ipv6 default template using the sdm prefer dual-ipv4-and-ipv6 default global
configuration command. Changing the template will require a reboot.
Part 1: Build the Network and Configure Basic Device Settings and Interface Addressing
Step 1: Cable the network as shown in the topology.
Step 2: Configure basic settings for each switch.
© 2020 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 7 www.netacad.com
Lab - Implement IP SLA
© 2020 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 7 www.netacad.com
Lab - Implement IP SLA
© 2020 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 7 www.netacad.com
Lab - Implement IP SLA
b. To test and see what response the SLAs give in a failure, issue the shutdown command on R1 interface G0/0/0, then
issue the show ip sla summary command again.
D1# show ip sla summary
IPSLAs Latest Operation Summary
Codes: * active, ^ inactive, ~ pending
All Stats are in milliseconds. Stats with u are in microseconds
d. Issue the command show ip sla statistics 4 to examine statistical information on this IP SLA.
D1# show ip sla statistics 4
IPSLAs Latest Operation Statistics
© 2020 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 7 www.netacad.com
Lab - Implement IP SLA
As you can see from the output, switch D1 is the active virtual router for VLAN 2 and the standby for VLAN 3 for both
IPv4 and IPv6.
b. From PC1, start a continuous ping to 192.168.1.1.
c. On D1, issue the shutdown command on interface VLAN 2. You should see that HSRP fails over to D2 as the Active
Virtual Router for VLAN 2, and the pings continue to succeed. When verified, issue the no shutdown command on
switch D1 interface VLAN 2.
d. From PC2, start a continuous ping to 192.168.1.1.
e. On D2, issue the shutdown command on interface VLAN 3. You should see that HSRP fails over to D1 as the Active
Virtual Router for VLAN 3, and the pings continue to succeed. When verified, issue the no shutdown command on
switch D2 interface VLAN 3.
f. Now issue the shutdown command on R1 interface G0/0/0 and R3 interface G0/0/0. Note that there is no impact on
either D1 or D2 regarding HSRP, and the pings start failing. Stop the continuous pings on PC1 and PC2 and issue the
no shutdown command on R1 interface G0/0/0 and R3 interface G0/0/0.
Step 2: Reconfigure HSRP to use the IP SLA.
a. Create a track object using the command track [number] ip sla [sla number].
D1(config)# track 4 ip sla 4
b. Set the delay timers. These are used to help manage changes on flapping links. In this case, R2 interface Loopback 0
is known to D1 and D2 via OSPF, so the delay needs to take OSPF timers into account. The command is setting the
SLA up so that it will wait a period of time after the first failed SLA to make sure it is actually down, and it will wait a
period of time after it appears to be returned to operation to be sure it is actually operating.
D1(config-track)# delay down 45 up 20
c. Configure track 6 to pay attention to IP SLA 6 with the same delay values.
D1(config)# track 6 ip sla 6
D1(config-track)# delay down 45 up 20
d. Now that the IP SLAs are being tracked, we must associate the status of the track with the HSRP group. This is done
on the VLAN interface using the standby [group] track [track number] command. As a part of that command, add a
decrement value, which will drop the interface’s HSRP priority should the IP SLA fail.
D1(config)# interface vlan 2
D1(config-if)# standby 2 track 4 decrement 60
D1(config-if)# standby 26 track 4 decrement 60
© 2020 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 7 www.netacad.com
Lab - Implement IP SLA
e. Repeat the same commands on D2 so that HSRP is tracking IP SLAs there as well.
Open configuration window
© 2020 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 7 www.netacad.com