How to perform hot standby on Cisco core switches

Use Cisco's Hot Standby Router Protocol (HSRP) to configure active and standby routers for high availability on core switches.Overview of HSRPHSRP is a Cisco proprietary protocol that provides ga...

How to perform hot standby on Cisco core switches

Use Cisco's Hot Standby Router Protocol (HSRP) to configure active and standby routers for high availability on core switches.

Overview of HSRP

HSRP is a Cisco proprietary protocol that provides gateway redundancy by allowing multiple routers or Layer 3 switches to share a virtual IP and MAC address. One device is elected as the active router to forward traffic, while another becomes the standby router, ready to take over if the active router fails. This ensures uninterrupted connectivity for hosts using the virtual gateway as their default route ( ).

Step-by-Step Configuration

  1. Access the Switch Connect via console, SSH, or Telnet and enter privileged EXEC mode:

    enableconfigure terminal

  2. Select the Interface HSRP is configured on Layer 3 interfaces, such as VLAN interfaces (SVIs):

    interface vlan 10

  3. Configure HSRP Group and Virtual IP Assign a group number and a virtual IP address:

    standby 1 ip 192.168.1.254 The group number must match on all switches participating in HSRP.

  4. Set Priority and Enable Preemption The priority determines which switch becomes active (higher value wins). Enable preemption to allow a higher-priority router to reclaim active status after recovery:

    standby 1 priority 120standby 1 preempt

  5. Optional: Interface Tracking Track interfaces or IP SLA objects to adjust HSRP priority dynamically if a link fails:

    standby 1 track GigabitEthernet0/1 20 This reduces priority by 20 if the tracked interface goes down, triggering failover if necessary ( ).

  6. Verify HSRP Status Use the following commands to check HSRP operation:

    show standbyshow standby brief These commands display the active and standby routers, HSRP state, and timers.

  7. Test Failover Simulate a failure by shutting down the active interface or switch:

    shutdown Verify that the standby router assumes the virtual IP and MAC address, maintaining connectivity for hosts ( ).

HSRP Timers and Optimization

  • Hello Timer: Default 3 seconds (time between hello messages)
  • Hold Timer: Default 10 seconds (time to declare active router down)
  • These can be tuned for faster failover:

standby 1 timers 1 3

This sets hello to 1 second and hold to 3 seconds for quicker convergence ( ).

Key Considerations

  • HSRP works on SVIs or routed ports, not physical access ports.
  • Ensure IP connectivity between switches on the same VLAN.
  • Use HSRPv2 for IPv6 or larger group numbers.
  • Multiple HSRP groups can be configured for load sharing across interfaces ( ). By following these steps, you can implement hot standby on Cisco core switches, ensuring high availability and seamless failover for your network's default gateway.
Factory
Jul 25, 2026

Configuring HSRP

This chapter describes how to use Hot Standby Router Protocol (HSRP) to provide routing redundancy for routing IP traffic without

Factory
Apr 23, 2026

High Availability Commands

Cisco IOS XE Everest 16.6.2 This command was implemented on Cisco Catalyst 9400 Series Switches. From the redundancy main

Factory
Aug 24, 2025

Hot Standby Router Protocol (HSRP)

Hot Standby Router Protocol (HSRP) is a Cisco proprietary protocol that provides gateway redundancy by allowing multiple routers

Factory
Jul 12, 2026

Switching

The Hot Standby Router Protocol (HSRP) is a Cisco proprietary protocol designed to provide high availability and fault tolerance for

Factory
Feb 27, 2026

Hot Standby Router Protocol (HSRP)

HSRP is a virtual gateway protocol for Cisco devices, in this lesson you will learn how it works and how to configure it.

Factory
Dec 26, 2025

Configuring HSRP

You can configure multiple Hot Standby groups among switches and switch stacks that are operating in Layer 3 to make more use of

Factory
Jan 14, 2026

What is HSRP? Cisco HSRP Protocol, States, Configuration Guide

Learn Cisco HSRP (Hot Standby Router Protocol), HSRP states, active & standby routers, configuration examples, failover operation

Factory
Jan 20, 2026

Cisco Hot Standby Router Protocol (HSRP) Configuration

This article shows how to configure Hot Standby Router Protocol (HSRP) on Cisco routers and the commands to verify our HSRP

Factory
Jan 16, 2026

High Availability Commands

If you ignore the mismatched commands, the out-of-synchronization configuration on the active switch and the standby switch still

Power Grid Optical Insights

Need Reliable Optical Solutions for Power Grids?

Contact us for OPGW, ADSS, hardware, and communication systems – we respond within 24 hours.