HSRP Combine Tracking
HSRP Combine Tracking
PNETLAB Store
PNETLab.com
Lab Topology:
Please use the following topology to complete this lab exercise:
Lab Objective:
The objective of this lab exercise is for you to learn and understand how can you configure
HSRP and Tracking.
Task list:
Task 1: Configure the hostname and IP address for the interface for Routers as topo. Check the
reachability between Routers.
1
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Task 2: Configure EIGRP at R1, R2, R4 so that R1 and R2 could reach to loopback 0 of R4 and R4
could reach to subnet 10.1.123.0/24.
Task 3: Configure HSRP between R1 and R2 for subnet 10.1.123.0
Task 4: Configure IP SLA Tracking in R2 for guarantee R2 will decrease 70 priority after
determine could not reach to R4 and check the result.
SOLUTION:
Task 1: Configure the hostname and IP address for the interface for Routers as topo. Check the
reachability between Routers.
On R1
!
interface Ethernet0/0
ip address 10.1.14.1 255.255.255.0
!
interface Ethernet0/2
ip address 10.1.123.1 255.255.255.0
!
On R2
!
interface Ethernet0/0
ip address 10.1.123.2 255.255.255.0
!
interface Ethernet0/1
ip address 10.1.24.2 255.255.255.0
!
On R3
!
interface Ethernet0/1
ip address 10.1.123.3 255.255.255.0
!
On R4
!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.14.4 255.255.255.0
!
interface Ethernet0/1
ip address 10.1.24.4 255.255.255.0
!
Verification:
R4#ping 10.1.14.1
Type escape sequence to abort.
2
Download PNETLab Platform
PNETLAB Store
PNETLab.com
4
Download PNETLab Platform
PNETLAB Store
PNETLab.com
R3#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.1.123.1 13 aabb.cc00.1b20 ARPA
Ethernet0/1
Internet 10.1.123.2 7 aabb.cc00.1a00 ARPA
Ethernet0/1
Internet 10.1.123.3 - aabb.cc00.1910 ARPA
Ethernet0/1
Internet 10.1.123.254 50 0000.0c07.ac01 ARPA
Ethernet0/1
// 0000.0c07.ac01 is Virtual MAC for Group 1.
Task 4: Configure IP SLA Tracking in R2 for guarantee R2 will decrease 70 priority after
determine could not reach to R4 and check the result.
On R2
!
ip sla 1
icmp-echo 10.1.24.4
frequency 10
ip sla schedule 1 life forever start-time now
!
track 1 ip sla 1
!
!
interface Ethernet0/0
standby 1 track 1 decrement 70
!
5
Download PNETLab Platform
PNETLAB Store
PNETLab.com
// We create 1 ip sla for waiting icmp by 10.1.24.4. Each 10 second, we will create 1 ICMP
request to 10.1.24.4, If we do not recept the reply, R2 will decrement 70 priority. So if R2 could
not reach to 10.1.24.4, Priority of R2 is 150 – 70 = 80. So it will be smaller than 100 of R1. With
preempt function, R1 will be ACTIVE State.
Verification:
R2(config)#int et0/1
R2(config-if)#shutdown
R2(config-if)#
*Sep 8 16:00:08.715: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor
10.1.24.4 (Ethernet0/1) is down: interface down
R2(config-if)#
*Sep 8 16:00:10.712: %LINK-5-CHANGED: Interface Ethernet0/1, changed
state to administratively down
*Sep 8 16:00:11.713: %LINEPROTO-5-UPDOWN: Line protocol on Interface
Ethernet0/1, changed state to down
R2(config-if)#
*Sep 8 16:00:22.979: %TRACK-6-STATE: 1 ip sla 1 state Up -> Down
R2(config-if)#
*Sep 8 16:00:24.787: %HSRP-5-STATECHANGE: Ethernet0/0 Grp 1 state
Active -> Speak
R2(config-if)#
*Sep 8 16:00:34.909: %HSRP-5-STATECHANGE: Ethernet0/0 Grp 1 state
Speak -> Standby
// After shutdown the interface toward to R4, we recognize ip sla 1 state will be down and HSRP
state of R2 goes to Standby.
R2(config)#int et0/1
R2(config-if)#no shu
R2(config-if)#no shutdown
R2(config-if)#
*Sep 8 16:00:48.845: %LINK-3-UPDOWN: Interface Ethernet0/1, changed
state to up
*Sep 8 16:00:49.845: %LINEPROTO-5-UPDOWN: Line protocol on Interface
Ethernet0/1, changed state to up
R2(config-if)#
*Sep 8 16:00:51.349: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor
10.1.24.4 (Ethernet0/1) is up: new adjacency
R2(config-if)#
*Sep 8 16:00:57.984: %TRACK-6-STATE: 1 ip sla 1 state Down -> Up
R2(config-if)#
*Sep 8 16:01:00.019: %HSRP-5-STATECHANGE: Ethernet0/0 Grp 1 state
Standby -> Active
6
Download PNETLab Platform
PNETLAB Store
PNETLab.com
// After no shutdown the interface toward to R4, we recognize ip sla 1 state will be up again
and HSRP state of R2 goes to Active because the function preempt.