0% found this document useful (0 votes)
15 views

HSRP Combine Tracking

Uploaded by

gandalf56
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

HSRP Combine Tracking

Uploaded by

gandalf56
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Download PNETLab Platform

PNETLAB Store
PNETLab.com

HSRP COMBINE TRACKING

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

Sending 5, 100-byte ICMP Echos to 10.1.14.1, timeout is 2 seconds:


!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R4#ping 10.1.24.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.24.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R1#ping 10.1.123.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.123.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
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.
On R1
!
router eigrp 1
network 10.1.14.0 0.0.0.255
network 10.1.123.0 0.0.0.255
passive-interface Ethernet0/2
!
On R2
!
router eigrp 1
network 10.1.24.0 0.0.0.255
network 10.1.123.0 0.0.0.255
passive-interface Ethernet0/0
!
On R4
!
router eigrp 1
network 4.4.4.4 0.0.0.0
network 10.1.14.0 0.0.0.255
network 10.1.24.0 0.0.0.255
!
Verification:
R4#show ip eigrp neighbors
EIGRP-IPv4 Neighbors for AS(1)
H Address Interface Hold Uptime SRTT
RTO Q Seq
(sec) (ms)
Cnt Num
1 10.1.24.2 Et0/1 13 00:38:53 1
100 0 3
3
Download PNETLab Platform
PNETLAB Store
PNETLab.com

0 10.1.14.1 Et0/0 12 00:38:58 3


100 0 4

R4#show ip route eigrp


10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
D 10.1.123.0/24 [90/307200] via 10.1.24.2, 00:39:16,
Ethernet0/1
[90/307200] via 10.1.14.1, 00:39:16,
Ethernet0/0

R1#show ip route eigrp


4.0.0.0/32 is subnetted, 1 subnets
D 4.4.4.4 [90/409600] via 10.1.14.4, 00:39:53, Ethernet0/0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
D 10.1.24.0/24 [90/307200] via 10.1.14.4, 00:39:50, Ethernet0/0

R4#ping 10.1.123.1 source l0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.123.1, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Task 3: Configure HSRP between R1 and R2 for subnet 10.1.123.0
On R1
!
interface Ethernet0/2
standby 1 ip 10.1.123.254
standby 1 preempt
!
On R2
!
interface Ethernet0/0
standby 1 ip 10.1.123.254
standby 1 priority 150
standby 1 preempt
!
//Create Virtual IP 10.1.123.254 for HSRP group
// Configure priority of R2 is 150. So R2 will be in the active state, R1 will be standby (Default
priority is 100 if we don’t specify).
//Configure preempt for R1 and R2.
Verification:

4
Download PNETLab Platform
PNETLAB Store
PNETLab.com

R1#show standby brief


P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual
IP
Et0/2 1 100 P Standby 10.1.123.2 local
10.1.123.254

R2#show standby brief


P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual
IP
Et0/0 1 150 P Active local 10.1.123.1
10.1.123.254
R2#

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.

You might also like