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

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

HSRPVRRPGLBP
StandardCiscoIETF (RFC 5798)Cisco
RolesActive / standbyMaster / backupAVG + up to 4 AVFs
Load balancingPer group (one group per VLAN)Per groupWithin one group: each host gets a different virtual MAC
PreemptionOff by defaultOn by defaultOff by default (AVG)
Virtual MAC (v1/v2)0000.0c07.acXX0000.5e00.01XX0007.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 briefHSRP groups: state, priority, active and standby routers and virtual IP.
show vrrp briefVRRP groups and the master.
show glbp briefGLBP groups, the AVG and each forwarder.

Exam traps

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 preempt is 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.

More topics in 3.0 IP Connectivity