What is HSRP?
HSRP (Hot Standby Router Protocol) is a Cisco proprietary First Hop Redundancy Protocol (FHRP). Hot Standby Router Protocol first hop redundancy mechanism provides an alternative path as a redundant and a proactive action for any failure on a device. In this HSRP tutorial, we will learn this gateway redundancy protocol and in the following lessons, we will also learn Cisco HSRP Configuration. You can also view related RFC 2281.

HSRP Router Roles
Hot Standby Router Protocol works with HSRP Groups. For each group, there are different routers that has different roles. These roles are:- Active Router
- Standby Router
- Listenning Routers
Active/Standby Elections
The main two roles of HSRP are Active and Standby. For these roles, routers does an election between them. In this election two parameters are important. The elections are done according to two parameters. These are:- Priority Values
- Interface IP Addresses
HSRP States
After the configuration of Hot Standby Router Protocol, some states are passed one by one. After these steps, Active and Standby routers are elected and the HSRP become active. So, what are these states? These HSRP states are mentioned below respectively:- Init: Starting state, the protocol is not running yet. Interfaces are available.
- Learn: Router doesn’t know anything yet. Waits for hellos, to learn Virtual IP.
- Listen: Router knows Virtual IP, not elected as standby or active.
- Speak: Router is actively participating in Active/Standby election by sending hellos.
- Standby: Acting as backup. Monitors and send hellos.
- Active: Accepting and forwarding user traffic.

HSRP Versions
There are two HSRP versions. These Hot Standby Router Protocol versions are:- HSRPv1
- HSRPv2
HSRPv2 is the enhanced version of v1. v2 supports IPv6. For Hello messaging, v2 uses a different Multicast address than v1. The new Multicast addres that v2 uses is224.0.0.102. v2 uses Group numbers from 0 to 4095.The packet format of v2 is different than v1.
In the Cisco HSRP Configuration example, we will also configure Hot Standby Router Protocol versions.

Hot Standby Router Protocol
HSRP Protocol Timers
By default periodic HSRP Hello packets are sent every 3 seconds. Active router is controlled by standby router with periodic hello packets by default every 3 seconds. In case of a failure of active router, this mechanism provide switching to the backup router. The Hold Time value is 10 seconds.
Frequent Asked Questions About HSRP
Why We Need a Gateway Redundancy Protocol?
In critical systems, we need a resundant mechanism with multiple devices. Even one of these devices fails, the traffic continues over another. Gateway redundancy protocols provide this mechanism by ensuring seamless gateway failover.What is “preempt” in HSRP configuration?
The “preempt” command is used to allow taking the active role again with a higher priority. Here, if a device has higher priority, it takes active role without waiting for the failure of the standby device.What are the other First Hop Redundancy Protocols?
Beside Hot Standby Router Protocol, there are two other gateway redundancy protocol. These are VRRP (Virtual Router Redundancy Protocol) and GLBP (Gateway Load Balancing Protocol).What is the Default HSRP Priority?
Cisco default priority value is 100 for Hot Standby Router Protocol.How can I use object tracking with HSRP?
To track an interface you can use standby <group> track <interface> <decrement> command. After this configuration, whenever this interface goes down, HSRP priority is reduced.How can I verify HSRP?
For verification, you can use “show standby brief” or “show standby” commands on Cisco devices. With these commands, you can check states (Active/Standby), VIP, priority, timers, and tracking status
[sc name=”ContentRMessage”]