// Lesson 32 of 49 · IP routing
First hop redundancy (HSRP, VRRP, GLBP)
Giving hosts a default gateway that survives a router failure — virtual IPs, active/standby roles and HSRP configuration.
2 min read#hsrp#vrrp#glbp#redundancy
A host has one default gateway address. If that router fails, the host loses everything beyond its subnet — even when a second router is right there. A first hop redundancy protocol (FHRP) fixes this by sharing a virtual IP and virtual MAC between routers.
How it works
- Two (or more) routers share a virtual IP, for example 192.168.10.1, which hosts use as their gateway.
- One router is active and answers for the virtual IP and MAC; another is standby.
- They exchange hellos. If the active router disappears, the standby takes over the virtual IP and MAC within seconds. Hosts notice nothing — their ARP entry is still valid.
The three protocols
| HSRP | VRRP | GLBP | |
|---|---|---|---|
| Standard | Cisco | Open (RFC 5798) | Cisco |
| Roles | Active / Standby | Master / Backup | AVG + several AVFs |
| Load sharing | Per group (use several groups) | Per group | Built in — several routers forward at once |
| Virtual MAC (IPv4) | 0000.0c07.acXX (v1) / 0000.0c9f.fXXX (v2) | 0000.5e00.01XX | 0007.b400.XXYY |
| Pre-emption | Off by default | On by default | Off by default |
HSRP configuration
R1(config)# interface GigabitEthernet0/0
R1(config-if)# ip address 192.168.10.2 255.255.255.0
R1(config-if)# standby version 2
R1(config-if)# standby 10 ip 192.168.10.1
R1(config-if)# standby 10 priority 110
R1(config-if)# standby 10 preempt
R2(config)# interface GigabitEthernet0/0
R2(config-if)# ip address 192.168.10.3 255.255.255.0
R2(config-if)# standby version 2
R2(config-if)# standby 10 ip 192.168.10.1
- The highest priority (default 100) becomes active; ties go to the highest interface IP.
- Preempt lets the preferred router take the active role back after it recovers.
- The group number (10) must match on both routers.
Verify
R1# show standby brief
P indicates configured to preempt.
Interface Grp Pri P State Active Standby Virtual IP
Gi0/0 10 110 P Active local 192.168.10.3 192.168.10.1
Test failover: shut R1's interface and keep a continuous ping running from a host (ping -t 8.8.8.8 on Windows) — you should lose only a couple of replies.
Key points
- Hosts use a virtual IP; routers share it with a virtual MAC.
- HSRP: active/standby, priority 100 by default, pre-emption off by default.
- VRRP is the open standard; GLBP load-balances across routers.
- Configure the same group and virtual IP on all members.
Sign in to save your lesson progress across devices. You can read every published lesson without an account.