3.5 Describe why first-hop redundancy exists and how the protocols deliver it
CCNA 200-301 v1.1 · 3.0 IP Connectivity
Hosts are configured with a single default gateway. If that router fails, they lose everything outside their subnet even though another router is right there. A first-hop redundancy protocol (HSRP, VRRP or GLBP) lets routers share a virtual IP and MAC address so the gateway survives, with no change on the hosts.
What you must know
- Explain why a single default gateway is a single point of failure.
- Describe the virtual IP and virtual MAC and how the active router uses them.
- Compare HSRP, VRRP and GLBP: standard, roles, load balancing.
- Explain priority, preemption and what happens during a failover.
The problem and the idea
A PC sends everything off its subnet to its default gateway's MAC address. Two routers on the LAN give redundant paths, but the PC only knows one gateway. An FHRP group owns a virtual IP (the gateway configured on the hosts) and a virtual MAC. One router, the active one, answers ARP for the virtual IP and forwards the traffic. The other listens to its hellos and takes over when they stop.
While R1 is active, PC1's traffic goes through it (1). If R1 fails, R2 takes the virtual IP and MAC and sends a gratuitous ARP so the switch learns the MAC's new port. PC1 keeps the same gateway and ARP entry.
HSRP, VRRP and GLBP
| HSRP | VRRP | GLBP | |
|---|---|---|---|
| Standard | Cisco | IETF (RFC 5798) | Cisco |
| Roles | Active / standby | Master / backup | AVG + up to 4 AVFs |
| Load balancing | Per group (one group per VLAN) | Per group | Within one group: each host gets a different virtual MAC |
| Preemption | Off by default | On by default | Off by default (AVG) |
| Virtual MAC (v1/v2) | 0000.0c07.acXX | 0000.5e00.01XX | 0007.b400.XXYY |
The router with the highest priority (default 100) becomes active; ties go to the highest IP. Preemption lets a higher-priority router take the role back when it returns. Without it, the router that took over keeps the role.
Commands
show standby brief | HSRP groups: state, priority, active and standby routers and virtual IP. |
show vrrp brief | VRRP groups and the master. |
show glbp brief | GLBP groups, the AVG and each forwarder. |
Exam traps
- Hosts use the virtual IP as their gateway, never a router's real address.
- HSRP and GLBP do not preempt by default; VRRP does.
- Only GLBP load-balances inside a single group.
- FHRP protects the first hop only; routing protocols handle the paths beyond it.
Check yourself
- Which FHRP is an open standard?
- VRRP.
- R1 (priority 110) fails and R2 takes over. R1 comes back. Who forwards with HSRP defaults?
- R2: HSRP does not preempt unless
preemptis configured on R1. - What does the standby router do while the active one works?
- It listens to hellos and takes over the virtual IP and MAC if they stop.