HSRP (First-Hop Redundancy) lab practice
Give hosts a virtual default gateway shared by two routers, control which one is active with priority and preemption, and verify failover.
4 labs · 0 lessons · 2 commands · 2 projects
Hosts have one default gateway. If that router fails, they are cut off even when a second router sits on the same LAN. HSRP solves this by giving two or more routers a shared virtual IP and virtual MAC: one is active and answers for it, the other is standby and takes over when hellos stop.
The CCNA expects you to explain the active and standby roles, set priority and preemption so the right router is active, and confirm the result with show standby. There is no CCNA path lesson dedicated to HSRP yet; the labs and projects below cover it.
Hands-on labs
- HSRP First-Hop Redundancy (Pro)
- HSRP Virtual Gateway on the LAN (Pro)
- HSRP With Two Groups (Pro)
- VRRP Gateway Hot Standby (Pro)
To practise for free, build the topology in the free Sandbox.
Commands
- show standby brief — Shows one line per HSRP group: priority, preemption, state, the active and standby routers and the virtual IP.
- show standby — Shows each HSRP group in detail: virtual IP and MAC, timers, priority, preemption and which router is active.
Related projects
- Redundant Default Gateway — Riverside Veterinary Hospital's pharmacy system went offline when its only router failed, and the vet nurses could not reconfigure fifty PCs by hand. Add a second router and HSRP so the PCs keep one gateway address and the routers decide between them.
- Campus Gateway High Availability with HSRPv2 and Uplink Tracking — A call centre lost its phones for ten minutes last quarter when its only gateway switch rebooted. Phase 2 of the campus project adds the second gateway: CORE-01 and CORE-02 already route VLAN 10 (staff) and VLAN 20 (call centre) with addresses .2 and .3, each has its own routed uplink to EDGE, and every host already points at .1, which nobody answers yet. Build HSRPv2 so CORE-01 is the primary gateway, make a core failure cost the phones no more than one second, and make the gateway move when CORE-01 loses its uplink, not only when it dies.