9.3.3 Packet Tracer - HSRP Configuration Guide
9.3.3 Packet Tracer - HSRP Configuration Guide
Addressing Table
ne
Device Interface IP Address Default Gateway
ia
R1
G0/1 192.168.1.1/24 N/A
R1
G0/2 10.1.1.9/30
ad
N/A
R2
G0/2 10.100.100.1/30
G
N/A
R3
G0/1 10.1.1.6/30 N/A
G0/2 10.1.1.10/30
R3
I-Net G0/1
e 10.100.100.2/30
N/A
N/A
os
HSRP Virtual Gateway Virtual 192.168.1.254/24 N/A
S1 VLAN 1 192.168.1.11/24 192.168.1.1
Note: The I-Net router is present in the internet cloud and cannot be accessed in this activity.
ee
Objectives
In this Packet Tracer activity, you will learn how to configure Hot Standby Router Protocol (HSRP) to provide
redundant default gateway devices to hosts on LANs. After configuring HSRP, you will test the configuration
hl
to verify that hosts are able to use the redundant default gateway if the current gateway device becomes
unavailable.
• Configure an HSRP active router.
at
Background / Scenario
Spanning Tree Protocol provides loop-free redundancy between switches within a LAN. However, it does not
provide redundant default gateways for end-user devices within the network if a gateway router fails. First
Hop Redundancy Protocols (FHRPs) provide redundant default gateway s for end devices with no additional
© 2019 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 5 www.netacad.com
Packet Tracer - HSRP Configuration Guide
end-user configuration necessary. By using a FHRP, two or more routers can share the same virtual IP
address and MAC address and can act as a single virtual router. Hosts on the network are configured with a
shared IP address as their default gateway. In this Packet Tracer activity, you will configure Cisco’s Hot
Standby Router Protocol (HSRP), which is an FHRP.
You will configure HSRP on routers R1 and R3, which serve as the default gateways for the hosts on LAN 1
ne
and LAN 2. When you configure HSRP, you will create a virtual gateway that uses the same default gateway
address for hosts in both LANs. If one gateway router becomes unavailable, the second router will take over
using the same default gateway address that was used by the first router. Because the hosts on the LANs are
configured with the IP address of the virtual gateway as the default gateway, the hosts will regain connectivity
to remote networks after HSRP activates the remaining router.
ia
Instructions
Part 1: Verify Connectivity
ad
Step 1: Trace the path to the Web Server from PC-A.
a. Go to the desktop of PC-A and open a command prompt.
G
b. Trace the path from PC-A to the webserver by executing the tracert 209.165.200.226 command.
Question:
Which devices are on the path from PC-A to the Web Server? Use the addressing table to determine the
device names.
R1, R2 and I-Net
Which devices are on the path from PC-B to the Web Server?
R
b. Open a command prompt on PC-B. Execute the tracert command with the Web Server as the
destination.
ee
c. Compare the current output with the output of the command from Step 2.
What are the results?
The tracert command cannot determine the path to the Web Server because the path has been
hl
broken.
d. Click the Connections icon in the lower left corner of the PT window. Locate and select the Copper
at
© 2019 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 5 www.netacad.com
Packet Tracer - HSRP Configuration Guide
ne
R1(config)# interface g0/1
b. Specify the HSRP protocol version number. The most recent version is version 2.
Note: Standby version 1 only supports IPv4 addressing.
R1(config-if)# standby version 2
ia
c. Configure the IP address of the virtual default gateway. This address must be configured on any hosts
that require the services of the default gateway. It replaces the physical interface address of the router
ad
that has been previously configured on the hosts.
Multiple instances of HSRP can be configured on a router. You must specify the HSRP group number to
identify the virtual interface between routers in a HSRP group. This number must be consistent between
the routers in the group. The group number for this configuration is 1.
G
R1(config-if)# standby 1 ip 192.168.1.254
d. Designate the active router for the HSRP group. It is the router that will be used as the gateway device
unless it fails or the path to it becomes inactive or unusable. Specify the priority for the router interface.
The default value is 100. A higher value will determine which router is the active router. If the priorities
e
of the routers in the HSRP group are the same, then the router with the highest configured IP address
will become the active router.
os
R1(config-if)# standby 1 priority 150
R1 will operate as the active router and traffic from the two LANs will use it as the default gateway.
e. If it is desirable that the active router resume that role when it becomes available again, configure it to
preempt the service of the standby router. The active router will take over the gateway role when it
R
a. Verify HSRP by issuing the show standby command on R1 and R3. Verify the values for HSRP role,
group, virtual IP address of the gateway, preemption, and priority. Note that HSRP also identifies the
active and standby router IP addresses for the group.
R1# show standby
C
© 2019 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 5 www.netacad.com
Packet Tracer - HSRP Configuration Guide
ne
Standby router is 192.168.1.3
Priority 150 (configured 150)
Group name is "hsrp-Gi0/1-1" (default)
ia
GigabitEthernet0/0 - Group 1 (version 2)
State is Standby
4 state changes, last state change 00:02:29
ad
Virtual IP address is 192.168.1.254
Active virtual MAC address is 0000.0C9F.F001
Local virtual MAC address is 0000.0C9F.F001 (v2 default)
Hello time 3 sec, hold time 10 sec
G
Next hello sent in 0.720 secs
Preemption disabled
Active router is 192.168.1.1
MAC address is d48c.b5ce.a0c1
Standby router is local
Priority 100 (default 100)
e
os
Group name is "hsrp-Gi0/0-1" (default)
R1
What is the MAC address for the virtual IP address?
0000.0C9F.F001
n
b. Use the show standby brief command on R1 and R3 to view an HSRP status summary. Sample output
is shown below.
R1# show standby brief
hl
c. Change the default gateway address for PC-A, PC-C, S1, and S3.
© 2019 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 5 www.netacad.com
Packet Tracer - HSRP Configuration Guide
Questions:
ne
Yes
Close configuration window
ia
Step 1: Make the active router become unavailable.
Open a command prompt on PC-B and enter the command tracert 209.165.200.226.
ad
Does the path differ from the path used before HSRP was configured?
Yes. The path now passes through R1 instead of R3.
G
a. Select the delete tool from the Packet Tracer toolbar and delete the cable that connect s R1 to S1.
b. Immediately return to PC-B and execute the tracert 209.165.200.226 command again. Observe the
output of the command until the command completes execution. You may need to repeat the trace to see
the full path.
Question:
e
How was this trace different from the previous trace?
os
At first, the trace timed out. Eventually, the trace went through R3, R2, and I-Net. R3 was used as the
first hop gateway in this trace instead of R1.
HSRP undergoes a process to determine which router should take over when the active router becomes
unavailable. This process takes time. Once the process is complete, the R3 standby router becomes
R
active and is used as the default gateway for hosts on LAN 1 and LAN 2.
the same?
No, R1 would not become the gateway again. The path through R3 would continue to be used.
End of document
at
C
© 2019 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 5 www.netacad.com