HSRP for CCNA: Gateway Redundancy with Two Routers

If the router acting as gateway fails, users lose their way out. FHRPs such as HSRP create a virtual gateway shared by two routers: one active and one standby. PCs use a single gateway IP and do not notice the change.

Exam domain: IP Connectivity · Level: Advanced · Updated on October 17, 2026 · 2 min read

Topology diagram “HSRP for CCNA: Gateway Redundancy with Two Routers” with 6 devices and 5 links
Topology: HSRP for CCNA: Gateway Redundancy with Two Routers

Edit this template Download .json

Learning objectives

Devices and addressing

DeviceTypeDetails
InternetWANISP
R1RouterActive · Priority 110
G0/0 192.168.1.2/24
R2RouterStandby · Priority 100
G0/0 192.168.1.3/24
VIPHSRP192.168.1.1
Virtual gateway
SW1SwitchSwitch
LAN
PC1PC / user192.168.1.10
GW 192.168.1.1

Reference configuration (Cisco IOS)

R1 (activo)

interface g0/0
 ip address 192.168.1.2 255.255.255.0
 standby version 2
 standby 1 ip 192.168.1.1
 standby 1 priority 110
 standby 1 preempt
 standby 1 track g0/1 20

R2 (standby)

interface g0/0
 ip address 192.168.1.3 255.255.255.0
 standby version 2
 standby 1 ip 192.168.1.1
 standby 1 priority 100
 standby 1 preempt

Verification commands

CCNA exam tips

The router with the higher priority (default 100) is active; without preempt it does not retake the role when it returns.

The virtual IP is the PCs' gateway; the HSRPv1 virtual MAC is 0000.0C07.ACxx.

How to use this template

Press “Edit this template”: the editor opens with the topology loaded and ready to change (undo with Ctrl+Z). You can also copy the JSON and paste it into the editor with File ▸ Import JSON…. Then add devices, change IPs and export to PDF, PNG or SVG.

To practice, rebuild the topology in Cisco Packet Tracer, GNS3 or Cisco Modeling Labs and paste the reference configuration on each device. Addresses and names are examples: change them to create your own variants.

JSON template for the editor

This is the full diagram in JSON format. Paste it into the editor (File ▸ Import JSON…) or press the edit button to load it automatically.

Edit this template

Frequently asked questions

What is an FHRP?

A first-hop redundancy protocol: HSRP, VRRP and GLBP.

What is the difference between HSRP and VRRP?

HSRP is Cisco-proprietary; VRRP is an open standard.

CCNA and Cisco are registered trademarks of Cisco Systems, Inc. This site is independent, not affiliated with Cisco and does not provide official exam material: the templates are study examples.

More related pages