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.

Edit this template Download .json
Learning objectives
- Configure an HSRP group with a virtual IP on two routers.
- Adjust priority and preempt to choose the active router.
- Verify the Active and Standby roles and test the failover.
Devices and addressing
| Device | Type | Details |
|---|---|---|
| Internet | WAN | ISP |
| R1 | Router | Active · Priority 110 G0/0 192.168.1.2/24 |
| R2 | Router | Standby · Priority 100 G0/0 192.168.1.3/24 |
| VIP | HSRP | 192.168.1.1 Virtual gateway |
| SW1 | Switch | Switch LAN |
| PC1 | PC / user | 192.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
show standby briefshow standbyshutdown g0/0 en R1 y repetir show standby brief
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.
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.