Answers: HSRP 2

By Chris February 10, 2016 09:05

This latest #HSRP lab requires you to think about the variety of optional settings and choose which non-default settings need to be configured. For instance, how do you control which router becomes primary, and whether that router preempts the other router if it fails and later recovers? This latest lab works through those options. As always, check the original lab post first, and then check your answers here in the matching answers post.

Figure 1: HSRP Design, One LAN Switch

Figure 2: HSRP Design, Two LAN Switches



Example 5: R1 Config

Example 6: R2 Config



Hot Standby Router Protocol (HSRP) is a Cisco proprietary first hop redundancy protocol (FHRP) that enables hosts to have redundant gateways. This is important because many LANs are configured with a single gateway that is used by all devices. If this single gateway were to fail, then all of the devices are left without access to external networks (not on the local LAN).

With HSRP, multiple routers reference a single IP address to be used as the default gateway. One router actively provides the data plane function of receiving packets from hosts, while the other waits to take over if the first router fails.

First, look at the two IP addresses in subnet that we know about from the router configuration: and .123. Then look at the figure, and see that that two PCs have been assigned and That leaves two usable addresses: the .121 and .126 address. (The subnet has subnet ID, subnet broadcast address, with the addresses between those numbers available for use.) So .126 is available, and is the highest IP address in the subnet.

So the standby 20 ip command sits in both routers’ configurations, under interface G0/1.

For the requirements to name the HSRP group and to set the HSRP version, two obvious commands on each router fill those requirements: the standby 20 name HSRPLab command and the standby version 2 command.

The default priority (which determines which router will become active) is 100. Per the directions, R1 has its HSRP priority set to 110 using the standby 20 priority 110 command, with R2’s value set to 90 with the standby 20 priority 90 command.

Finally, the lab asks (with subtle wording) to make sure R1 does not preempt R2 if it fails and then recovers. HSRP uses a default of no standby 20 preempt, that is, by default HSRP does not preempt. So the R1 configuration did not need the addition of a no standby 20 preempt command.

Serial Config 2
By Chris February 10, 2016 09:05
Write a comment


  1. Jonathan December 22, 12:25


    I configured two real C3825 routers in the above configuration. I also triple checked the show standby command that Preemption was disabled on both routers. I then did a shut on the R1 int gi0/0 (that’s how my router has it named) and R2 took over. I then did a no shut on R1 int gi0/0 and R1 still took over and R2 went from active to standby. What did I do wrong?

    Reply to this comment
    • certskills January 21, 11:00

      Hi Jonathan,
      Thanks for the note.
      I can’t tell what went wrong from what you wrote. It’s a pretty easy thing to test, so I’m sure that’s why neither of us has a good guess as to what’s happening. I’d suggest (just things to try) if you want to try more.

      term mon on both routers when you test, to make sure you see all log messages.
      Make sure the router interfaces aren’t failing and recovering as part of the test. That would drive the HSRP process to elect a new active router. (That is – when you test, at no point does R2’s interface go down – right?
      I hate to go here on something so simple, but it’s possible that it’s a bug.
      I’ll mark it as something to test myself in lab, just for grins. Easily done. I’ll be in lab a lot this week. I’ll post back.

      Reply to this comment
View comments

Write a comment

Comment; Identify w/ Social Media or Email


Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.