Study guide

7.3 First Hop Redundancy Protocols: HSRP and VRRP Implementation and Failover

Cisco ENCOR 350-401 CCNP Enterprise Core

Track your progress as you read

Finished sections get a check mark.

1 Introduction & Exam Overview

0.1 Cisco 350-401 ENCOR Exam Logistics, Blueprint Structure, and Certification Paths 0.2 Preparation Strategy, Lab Environment Setup, and Practical Test Pacing

2 Enterprise Campus Architecture and High Availability

1.1 Enterprise Network Design: Two-Tier, Three-Tier, Fabric, and Cloud Architectures 1.2 High Availability Architecture: Device Redundancy, FHRPs, and Stateful Switchover (SSO) 1.3 Quality of Service (QoS) Architecture, Classification, Queuing, and Configuration Interpretation

3 Cisco Software-Defined Architecture: SD-WAN and SD-Access

2.1 Cisco Catalyst SD-WAN: Control, Management, and Data Planes 2.2 Cisco SD-Access Architecture: Control Plane, Data Plane, and Fabric Node Roles 2.3 SD-Access Campus Interoperability: Integrating Traditional Networks with Fabric

4 Device and Network Virtualization Technologies

3.1 Device Virtualization: Type 1/2 Hypervisors, Virtual Machines, and Virtual Switching 3.2 Data Path Virtualization: VRF-Lite, GRE Tunneling, and IPsec VPN Fundamentals 3.3 Network Virtualization Overlays: LISP and VXLAN Encapsulation Mechanics

5 Layer 2 Infrastructure: Trunking, EtherChannel, and Spanning Tree

4.1 802.1Q Trunking, Native VLAN, and Dynamic Trunking Protocol Troubleshooting 4.2 EtherChannel Bundling: Static, LACP, and PAgP Implementation and Verification 4.3 Spanning Tree Architecture: RSTP, MST, and STP Protection Mechanisms

6 Layer 3 Routing: OSPF Multi-Area and Protocol Comparison

5.1 Enterprise Routing Principles: Distance Vector vs. Link-State, EIGRP, and OSPF 5.2 OSPFv2 and OSPFv3 Multi-Area Architecture: LSAs, Area Types, and Summarization 5.3 Policy-Based Routing (PBR) Architecture, Configuration, and Route-Maps

7 Exterior Routing: BGP Peering and Path Selection

6.1 External BGP (eBGP) Peering, States, Neighbor Adjacencies, and Timers 6.2 BGP Path Attributes and the Step-by-Step Best Path Selection Algorithm

8 IP Services and First-Hop Redundancy

7.1 Time Synchronization: Network Time Protocol (NTP) and Precision Time Protocol (PTP) 7.2 Network Address Translation: Static NAT, Dynamic NAT, and PAT/Overload 7.3 First Hop Redundancy Protocols: HSRP and VRRP Implementation and Failover

9 IP Multicast Architecture and Protocols

8.1 Multicast Addressing, IGMPv2/v3 Host Membership, and the RPF Check 8.2 Protocol Independent Multicast Sparse Mode (PIM-SM) and Rendezvous Point Discovery 8.3 Anycast RP with MSDP, Source-Specific Multicast (SSM), and Bidirectional PIM

10 Network Diagnostics, Monitoring, and Telemetry

9.1 Network Diagnostic Tools: Conditional Debugging, Traceroute, SNMPv3, and Syslog Logging 9.2 Flexible NetFlow (FNF) Architecture: Flow Records, Exporters, and Monitors 9.3 Switched Port Analyzer: Local SPAN, Remote SPAN (RSPAN), and Encapsulated RSPAN (ERSPAN)

11 Performance Monitoring and Model-Driven Assurance

10.1 IP Service Level Agreements (IP SLA) Probes, Responder, and Route Tracking 10.2 Cisco Catalyst Center: Assurance Dashboards, AI Analytics, and Machine Reasoning Workflows 10.3 Model-Driven Telemetry and Programmable Interfaces: NETCONF and RESTCONF Verification

12 Device Access Control and AAA Architecture

11.1 Device Line Protection: Console, Aux, VTY, Local Authentication, and Privilege Levels 11.2 AAA Architecture: Comparing RADIUS vs. TACACS+ and Method List Configuration

13 Infrastructure Security: ACLs, CoPP, and API Security

12.1 IPv4 and IPv6 Access Control Lists (ACLs): Standard, Extended, and Named Rules 12.2 Control Plane Policing (CoPP): Protecting the Route Processor with MQC 12.3 REST API Security: Token Authentication, TLS Transport, and Rate Limiting

14 Enterprise Network Security Design: ISE, TrustSec, and MACsec

13.1 Endpoint Security Architecture: 802.1X, Cisco ISE Posture, and Profiling 13.2 Next-Generation Firewalls (FTD) and Enterprise Threat Defense Design 13.3 Cisco TrustSec (Security Group Tags) and MACsec (802.1AE) Layer 2 Encryption

15 Network Automation Fundamentals: Python, JSON, and YANG

14.1 Python Fundamentals for Network Engineers: Data Types, Control Flow, and Libraries 14.2 JSON Data Encoding: Syntax, Formatting Rules, and Python Serialization 14.3 YANG Data Modeling: Modules, Tree Structures, and Data Representation

16 Controller REST APIs and RESTCONF Implementation

15.1 Cisco Catalyst Center Intent APIs and Authentication Workflows 15.2 Cisco Catalyst SD-WAN Manager (vManage) REST APIs and Device Interaction 15.3 RESTCONF Protocol Operations: HTTP Verbs, Datastores, and Response Codes

17 Event-Driven Automation and Infrastructure Orchestration

16.1 Cisco Embedded Event Manager (EEM) Applet Architecture and Event Detectors 16.2 Configuration Management: Comparing Ansible, Puppet, Chef, and SaltStack 16.3 Infrastructure as Code (IaC) Principles with Terraform in Enterprise Networks

7.3 First Hop Redundancy Protocols: HSRP and VRRP Implementation and Failover

Key Takeaways Explain This Topic AI

First Hop Redundancy Protocols (FHRPs) eliminate single points of failure for client default gateways by binding multiple physical routers into a single logical gateway sharing a Virtual IP (VIP) and Virtual MAC (VMAC).

Hot Standby Router Protocol (HSRP / RFC 2281) transitions through six finite states (Initial, Learn, Listen, Speak, Standby, Active), electing one Active router to forward data plane traffic and one Standby router to provide hot failover.

HSRPv1 is limited to 256 groups and uses MAC 0000.0c07.acXX with multicast 224.0.0.2, whereas HSRPv2 scales to 4,096 groups, uses MAC 0000.0c9f.fXXX with multicast 224.0.0.102 (IPv6 FF02::66), and supports millisecond timers.

Preemption allows a recovering primary router with higher priority to reclaim the Active forwarding role, but must be configured with preemption delay (standby preempt delay minimum) to prevent blackholing traffic while routing protocols converge.

Virtual Router Redundancy Protocol (VRRP / RFC 5798) is an open standard that elects a Master and Backup routers using virtual MAC 0000.5e00.01XX, enables preemption by default, and assigns priority 255 to an IP Address Owner.

Last updated: October 2026

First Hop Redundancy Protocols: HSRP and VRRP Implementation and Failover

In standard enterprise campus networks, endpoint devices (such as workstations, access points, IP phones, and medical systems) are statically configured or assigned via DHCP with a single IPv4 default gateway address. If the physical switch or router hosting that gateway interface fails, all outbound traffic from that subnet is halted—even if a fully functional secondary uplink or redundant router exists on the same local segment.

First Hop Redundancy Protocols (FHRPs) eliminate this single point of failure by sharing a Virtual IP (VIP) and a Virtual MAC (VMAC) address across two or more physical routers. Endpoints target the shared VIP as their default gateway. The active router responds to client ARP queries with the VMAC and forwards egress data frames. If the primary gateway fails, the backup router takes ownership of the VIP and VMAC within seconds or milliseconds without requiring endpoint reconfiguration.

Hot Standby Router Protocol (HSRP) Architecture

Hot Standby Router Protocol is a Cisco-proprietary gateway redundancy mechanism defined in RFC 2281 (for HSRPv1). HSRP assigns distinct operational roles to participating routers within a redundancy group:

Active Router: The primary router currently forwarding data packets sent to the virtual MAC address. The Active router responds to host ARP requests for the virtual IP and transmits periodic Hello packets to signal health.

Standby Router: The designated secondary router that continuously monitors Hello packets from the Active router. If the Active router ceases transmitting hellos before the hold timer expires, the Standby router promotes itself to Active.

Listen / Other Routers: In topologies with three or more gateways in the same group, additional routers remain in the Listen state. They do not send hello packets, but track state to replace the Standby router if it promotes to Active. [Enterprise Core / WAN]

  • | |
  • +------------+ +------------+
  • | |
  • +--------------------------+ +--------------------------+
  • | ROUTER 1: Active Gateway | | ROUTER 2: Standby Gateway|
  • | Priority: 110 (Preempt) | | Priority: 100 |
  • | IP: 10.1.1.2 | | IP: 10.1.1.3 |
  • +--------------------------+ +--------------------------+
  • \ /
  • \ Virtual IP: 10.1.1.1 /
  • \ Virtual MAC: 0000.0c9f.f00a/
  • +-------------+------------+
  • |
  • [Layer 2 Access Switch]
  • |
  • [Client Endpoint (PC)]
  • Default Gateway: 10.1.1.1
  • The HSRP Finite State Machine (FSM)

An HSRP-enabled interface transitions through six distinct states during initialization and election:

Initial (Init): The starting state. The interface has just booted, was un-shut, or HSRP configuration was applied. The state machine is not yet operational.

Learn: The router has not yet determined the virtual IP address because it was not statically configured on the local interface. It waits to hear a Hello packet from the active router to learn the VIP.

Listen: The router knows the virtual IP address. It is neither the Active nor Standby router; it listens for Hello packets from other routers.

Speak: The router transmits periodic Hello packets and actively participates in the election of the Active and Standby routers.

Standby: The router is the candidate to become the next Active router. It transmits periodic Hello messages. Exactly one router per group resides in the Standby state.

Active: The router is currently forwarding traffic sent to the virtual MAC address and responding to ARP requests. It transmits periodic Hello messages. Exactly one router per group resides in the Active state.

HSRP Version 1 vs. HSRP Version 2

HSRPv2 introduced critical enhancements over legacy HSRPv1 to support high-density multi-VLAN campus environments, IPv6 routing, and sub-second convergence.

HSRPv1 vs. HSRPv2 Comparison Matrix

  • Architectural Feature HSRP Version 1 (RFC 2281) HSRP Version 2
  • Group Number Range 0 to 255 (8-bit) 0 to 4,095 (12-bit, matching 802.1Q VLAN IDs)

IPv4 Virtual MAC Address 0000.0c07.acXX ( X X XX XX = 2-digit hex group) 0000.0c9f.fXXX ( X X X XXX XXX = 3-digit hex group)

  • IPv6 Virtual MAC Address Unsupported 0005.73a0.0XXX ( X X X XXX XXX = 3-digit hex group)
  • Multicast Destination IP 224.0.0.2 (All-Routers multicast) 224.0.0.102 (HSRPv2-specific multicast)
  • IPv6 Multicast Address Unsupported FF02::66
  • Transport Layer Port UDP port 1985 UDP port 1985
  • Timer Granularity Seconds (Default: Hello 3s / Hold 10s) Milliseconds (e.g., Hello 200ms / Hold 600ms)
  • Packet Format Fixed byte structure Type-Length-Value (TLV) format
  • CGMP Conflict Yes (Shares 224.0.0.2 with CGMP) No (Uses dedicated 224.0.0.102)

Example: An interface configured in HSRPv1 Group 10 ( 10 = 0 x 0 A 10 = 0x0A 10 = 0 x 0 A ) generates virtual MAC 0000.0c07.ac0a . An interface configured in HSRPv2 Group 10 generates virtual MAC 0000.0c9f.f00a .

  • Priority, Election, Preemption, and Preempt Delay
  • Election Rules

When multiple routers participate in an HSRP group, election of the Active router is governed by two deterministic criteria:

Highest Priority Wins: Priority ranges from 1 to 255 (default is 100 ).

Tie-Breaker: If priority values are identical, the router with the highest configured physical IPv4 address on the participating interface becomes Active.

Preemption Mechanics

By default, HSRP preemption is disabled . If Router 1 (priority 110) fails, Router 2 (priority 100) assumes the Active role. When Router 1 reboots and returns to service, it will not reclaim the Active role unless configured with standby <group> preempt . Without preemption, Router 1 remains in Standby despite possessing higher priority.

The Critical Role of Preempt Delay

Enabling immediate preemption introduces severe packet blackholing risks during system recovery: Router Reboot ---> Interface Links UP ---> HSRP Preempts to Active (IMMEDIATE)

  • | |
  • v v
  • [IGP Adjacency Forming (OSPF / BGP)] [Traffic Arriving at Router]
  • | |
  • v v
  • [CEF Hardware FIB Not Yet Populated] [Packets Dropped / Blackholed!]

When a modular switch or router boots, its physical interfaces link up and HSRP transitions to Active in seconds. However, upstream interior gateway protocols (OSPF, EIGRP, BGP) require tens of seconds to exchange database descriptions, compute shortest path trees, and push routing tables into Cisco Express Forwarding (CEF) hardware ASICs.

If the recovering router immediately preempts the Active role, it begins receiving all client outbound traffic before its upstream routing paths exist, dropping packets into a black hole. To prevent this, engineers configure preempt delay : standby 10 preempt delay minimum 60 reload 180

This command forces the router to wait 60 seconds after interface recovery (or 180 seconds after a chassis reload) before initiating preemption, guaranteeing complete routing table convergence.

Interface Tracking with Enhanced Object Tracking (EOT)

HSRP monitors health through hello packets on the local client-facing LAN interface. However, if the Active router experiences a complete failure of its upstream WAN or core uplink, it continues transmitting HSRP hellos to the LAN, remaining Active while unable to route packets toward the enterprise core.

Enhanced Object Tracking (EOT) links HSRP priority to upstream interfaces, IP routes, or IP SLA probes: ! Define tracking object on upstream core link

track 1 interface GigabitEthernet0/0/1 line-protocol

!

  • ! Apply tracking to LAN interface
  • interface GigabitEthernet0/0/0
  • description Client LAN Gateway
  • ip address 10.1.1.2 255.255.255.0
  • standby version 2
  • standby 10 ip 10.1.1.1
  • standby 10 priority 110
  • standby 10 preempt delay minimum 60
  • standby 10 track 1 decrement 20

If GigabitEthernet0/0/1 goes down, Track 1 transitions to down, and HSRP automatically decrements Router 1's priority by 20 ( 110 − 20 = 90 110 - 20 = 90 110 − 20 = 90 ). Because Router 2 possesses priority 100 and preemption enabled, Router 2 immediately promotes to Active, maintaining end-to-end client connectivity.

Virtual Router Redundancy Protocol (VRRP)

VRRP is an open-standard First Hop Redundancy Protocol defined by the IETF in RFC 3768 (VRRPv2 for IPv4) and RFC 5798 (VRRPv3 for IPv4 and IPv6). VRRP operates similarly to HSRP with several distinct protocol variations:

Roles: VRRP elects one Master Router and one or more Backup Routers .

Virtual MAC Address: Formatted as 0000.5e00.01XX for IPv4 ( X X XX XX is the 2-digit hex group) and 0000.5e00.02XX for IPv6.

Multicast Transport: Transmits advertisements to 224.0.0.18 using native IP protocol number 112 .

Default Preemption: Unlike HSRP, preemption is enabled by default in VRRP.

Timers: Default advertisement interval is 1 second . Backup routers calculate the Master Down Interval as:

Master Down Interval = ( 3 × Advertisement Interval ) + Skew Time \text{Master Down Interval} = (3 \times \text{Advertisement Interval}) + \text{Skew Time} Master Down Interval = ( 3 × Advertisement Interval ) + Skew Time Skew Time = 256 − Priority 256 \text{Skew Time} = \frac{256 - \text{Priority}}{256} Skew Time = 256 256 − Priority ​

IP Address Owner: VRRP allows the virtual IP address to match the real physical interface IP address configured on a router. When this occurs, that router is designated the IP Address Owner , and its priority is locked at 255 (the maximum possible priority). An IP Address Owner always preempts all other routers.

Comparison: HSRP vs. VRRP

  • Protocol Feature Cisco HSRP (v1 / v2) IETF VRRP (v2 / v3)
  • Standardization Cisco Proprietary (RFC 2281) Open IETF Standard (RFC 5798)
  • Router Roles Active, Standby, Listen Master, Backup
  • Default Preemption Disabled (Requires explicit configuration) Enabled by default
  • Virtual MAC (IPv4) v1: 0000.0c07.acXX / v2: 0000.0c9f.fXXX 0000.5e00.01XX
  • Virtual MAC (IPv6) 0005.73a0.0XXX 0000.5e00.02XX
  • Multicast Address v1: 224.0.0.2 / v2: 224.0.0.102 224.0.0.18 (IP Protocol 112)
  • Timer Intervals Default: 3s Hello / 10s Hold Default: 1s Advertisement / ~3s Master Down
  • IP Address Owner Virtual IP should not match physical IP Can match physical IP (Priority locked at 255)
  • CLI Configuration and Verification Walkthrough
  • Cisco IOS-XE VRRPv3 Configuration interface GigabitEthernet0/0/0
  • description LAN Gateway Interface
  • ip address 10.1.1.2 255.255.255.0
  • fhrp version vrrp v3
  • vrrp 1 address-family ipv4
  • priority 120
  • preempt delay minimum 30
  • track 1 decrement 30
  • address 10.1.1.1 primary
  • Operational Verification Commands Router# show standby brief

P indicates configured to preempt.

  • |
  • Interface Grp Pri P State Active Standby Virtual IP
  • Gi0/0/0 10 110 P Active local 10.1.1.3 10.1.1.1
  • Router# show standby
  • GigabitEthernet0/0/0 - Group 10 (version 2)
  • Local state is Active, priority 110 (configured 110), may preempt
  • Preemption delay min 60 secs, reload 180 secs
  • Hellos sent 1492, received 218
  • Virtual IP address is 10.1.1.1
  • Active router is local
  • Standby router is 10.1.1.3, priority 100 (expires in 8.412 sec)
  • Virtual MAC address is 0000.0c9f.f00a (v2 default)
  • Tracking 1 object, state Up, decrement 20
  • Router# show vrrp brief
  • Interface Grp A-F Pri Time Own Pre State Master addr Group addr
  • Gi0/0/0 1 IPv4 120 1000 N Y MASTER 10.1.1.2 10.1.1.1