The problem FHRPs solve
End hosts are configured with one default gateway IP. They do not monitor whether that gateway is alive. If the router with that IP fails, packets pile up with nowhere to go. Reconfiguring every host with a new gateway address is not a realistic option in a production network.
FHRPs solve this by presenting a virtual IP address that is never tied to any physical router. Two or more routers share this virtual identity. One is active and handles traffic. The other watches and waits. If the active router fails, the standby takes over and begins responding to ARP for the virtual IP. From the hosts' perspective, the gateway never changed.
HSRP, VRRP, and GLBP
HSRP (Hot Standby Router Protocol) is Cisco-proprietary. Routers exchange Hello messages every 3 seconds. If a standby router does not hear from the active router for 10 seconds (the hold timer), it takes over. The router with the highest HSRP priority becomes active. Default priority is 100. Ties break on the highest interface IP address.
Preemption is disabled by default in HSRP, and this catches many engineers off guard. If the active router fails and the standby takes over, then the original active router recovers with higher priority, it will NOT reclaim the active role unless standby preempt is configured. Without preemption, the current active router stays active regardless of priority.
VRRP (Virtual Router Redundancy Protocol) is the open standard equivalent. It uses the same active/standby concept (called Master and Backup) but preemption is enabled by default, the opposite of HSRP. VRRP works across different vendors.
GLBP (Gateway Load Balancing Protocol) is Cisco-proprietary and adds load balancing to the concept. All GLBP routers share the same virtual IP but each is assigned a different virtual MAC address. The AVG (Active Virtual Gateway) assigns MACs to forwarding routers called AVFs (Active Virtual Forwarders). Different hosts get different virtual MACs, so traffic distributes across all routers simultaneously instead of one active and the rest idle.
How to choose the correct answer
HSRP preemption: disabled by default. A returning high-priority router will NOT retake active without standby preempt configured. This is frequently tested as a troubleshooting scenario.
Protocol selection: Cisco-only, basic redundancy = HSRP. Open standard, multi-vendor = VRRP. Load balancing across multiple gateways simultaneously = GLBP.
HSRP election: highest priority wins. Default 100. Tie = highest IP on the HSRP interface.
Virtual MAC addresses: HSRP v1 = 0000.0C07.ACxx where xx is the group number. HSRP v2 = 0000.0C9F.Fxxx. VRRP = 0000.5E00.01xx.