This topic describes the Hot Standby Router Protocol (HSRP), an IP routing redundancy protocol that provides transparent failover at the first-hop IP router by allowing a group of routers to select an active and a standby router.
The Hot Standby Router Protocol (HSRP) is an IP routing redundancy protocol that
-
provides transparent failover at the first-hop router
-
increases network availability, and
-
manages traffic routing without relying on a single device.
HSRP operates by selecting an active router to forward traffic and a standby router to assume responsibilities during a failure. This architecture ensures continuous network connectivity by maintaining a ready backup within the router group.
HSRP employs specific roles to maintain network continuity:
-
The active router serves as the primary device for forwarding IP traffic.
-
The standby router monitors the active device and takes over if a failure occurs or if specific conditions are met.
From Release 24.2.1, you can configure HSRP VIP on subinterfaces.
|
Feature Name |
Release Information |
Feature Description |
|---|---|---|
|
Hot Standby Router Protocol |
Release 26.3.1 |
Introduced in this release on: Modular Systems (8800 [LC ASIC: K100])(select variants only*) *This feature is supported on Cisco 88-LC1-48Y8F-EM line cards. |
|
Hot Standby Router Protocol |
Release 25.4.1 |
Introduced in this release on: Fixed Systems (8010 [ASIC: A100], 8700 [ASIC: K100])(select variants only*) *This feature is supported on:
|
|
Hot Standby Router Protocol |
Release 25.1.1 |
Introduced in this release on: Fixed Systems (8010 [ASIC: A100]) This feature is supported on Cisco 8011-4G24Y4H-I routers. |
|
Enabling Hot Standby Router Protocol over BVI |
Release 25.1.1 |
Introduced in this release on: Modular Systems (8800 [LC ASIC: P100]) (select variants only*) You can now enable Hot Standby Router Protocol (HSRP) over BVI on Cisco Silicon One P100 ASIC-based systems. This feature, enabled by default, ensures continuous network availability by automatically switching to a standby router if the active router fails. This minimizes downtime and maintains network reliability. *The feature is supported on:
|
To implement HSRP on Cisco IOS XR software, you need to understand these concepts:
-
HSRP is useful for hosts that do not support a router discovery protocol (such as Internet Control Message Protocol [ICMP] Router Discovery Protocol [IRDP]) and cannot switch to a new router when their selected router reloads or loses power. Because existing TCP sessions can survive the failover, this protocol also provides a more transparent recovery for hosts that dynamically choose a next hop for routing IP traffic.
-
When HSRP is configured on a network segment, it provides a virtual MAC address and an IP address that is shared among a group of routers running HSRP. The address of this HSRP group is referred to as the virtual IP address. One of these devices is selected by the protocol to be the active router. The active router receives and routes packets destined for the MAC address of the group. For n routers running HSRP, n + 1 IP and MAC addresses are assigned.
-
HSRP detects when the designated active router fails, at which point a selected standby router assumes control of the MAC and IP addresses of the HSRP group. A new standby router is also selected at that time.
-
Devices that are running HSRP send and receive multicast User Datagram Protocol (UDP) based hello packets to detect router failure and to designate active and standby routers.