VRRP (Virtual Router Redundancy Protocol) / HSRP (Hot Standby Router Protocol) / GLBP (Gateway Load Balancing Protocol)
What it is for
A host is configured with one default gateway. If the gateway router fails, the whole subnet loses access to other subnets, and the host does not switch gateways by itself.
VRRP has two routers share a virtual IP, which hosts configure as their gateway. Normally the master owns the virtual IP; when the master fails, the backup takes over, and the hosts need no changes.
The virtual MAC
A host's ARP cache holds "gateway IP -> MAC". If the gateway MAC changed on failover, the host would keep sending to the old MAC until the entry ages out, minutes later.
So VRRP defines a virtual MAC (00:00:5e:00:01:VRID). Master and backup use the same MAC, so a host's ARP cache remains correct after failover.
The new master sends a gratuitous ARP so the switches' MAC tables immediately point that MAC at its port.
Common misconceptions
VRRP does not let both gateways share the load: only the master forwards. Load sharing needs GLBP (Cisco-proprietary) or alternating master roles per VLAN.
Hosts do not need to re-ARP on failover: the virtual MAC did not change, so their ARP caches remain correct.
VRRP and HSRP are functionally similar, but VRRP is the standard (RFC 5798), while HSRP and GLBP are Cisco-proprietary. Mixed-vendor networks must use VRRP.