Gateway Redundancy
Why a virtual gateway helps
Hosts often use one default gateway address. If that gateway stops forwarding, remote services become unreachable even though the LAN works. A first-hop redundancy protocol lets several routers provide a shared virtual gateway address. Hosts retain that address while responsibility moves between routers. This is different from routing convergence further upstream.
VRRP, HSRP and GLBP
VRRP version 3 (RFC 9568, replacing RFC 5798) covers IPv4 and IPv6. One Active Router is responsible for a virtual router, while Backup Routers monitor advertisements and can take over. Priority and protocol rules determine election; preemption and timers influence recovery. HSRP and GLBP are Cisco-origin protocols; HSRP provides an active/standby gateway, while GLBP can also distribute hosts across virtual forwarders. Support depends on platform and release. A working first hop does not establish that the upstream route, firewall or application is healthy.
Worked example: gateway loss
In this paper topology, both routers have a route to the fictional remote network. R1 is active and R2 is backup. Assume R1 fails at t=10 s, R2 takes over at t=13 s, and an end-to-end probe succeeds again at t=15 s. The modeled gateway recovery is 3 s, but the observed service recovery is 5 s. The client keeps 192.0.2.1 as its gateway. Actual timing depends on protocol, device, link, neighbor updates, routing and service state. These times are supplied, not calculated VRRP timers or measured failover.
Client 192.0.2.10/24 | LAN -- virtual gateway 192.0.2.1 +-- R1 192.0.2.2 (active) -- upstream A +-- R2 192.0.2.3 (backup) -- upstream Bt=10 R1 fails; t=13 R2 active; t=15 service probe OKRedundancy, load balancing and recovery
A load balancer directs traffic to selected healthy backends; a health check should test readiness for the relevant request. Removing an unhealthy backend does not guarantee existing sessions survive. For DNS, independent authoritative servers and recursive resolvers address different failures. DHCP failover requires coordinated address ownership and lease state. Two routers using the same switch, power supply or upstream link share a failure domain. Redundancy adds alternatives; failover selects one after failure; disaster recovery restores service and data after a larger disruption. Test backups and recovery independently.
Practice and safe verification
Given failure at 20 s, gateway takeover at 24 s and service recovery at 29 s, calculate 4 s and 9 s. In a real approved isolated lab, record baseline routes and application probes, confirm standby readiness, simulate a single failure, check both directions, then restore and verify. Never disconnect a production link for practice. Check stateful NAT or firewall session continuity separately.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Gateway Redundancy Quiz
Apply the lesson to offline network scenarios.
What gateway address should the client use after the modeled R1 failure?
Failure starts at 10 s and the application recovers at 15 s. What is observed service interruption?
Both gateways use the same power supply. What risk remains?
Which protocol provides first-hop redundancy with virtual forwarder load sharing as described?
What evidence best confirms service recovery after gateway takeover?