Learning hub

First-Hop Redundancy (HSRP & VRRP)

First-hop redundancy protocols (FHRPs) let two or more routers share a single virtual gateway IP so that end hosts never lose their default gateway when one router fails. This hub gathers the concepts, the step-by-step HSRP and VRRP configuration guides, a command cheat sheet, and hands-on graded labs so you can go from "what is a virtual IP" to a verified, redundant gateway.

Every host on a LAN is configured with one default gateway address, which makes that gateway a single point of failure: if the router that owns it goes down, the whole subnet loses off-net reachability even when a second router sits right beside it. First-hop redundancy solves this by letting a group of routers share a virtual IP address (and a virtual MAC address) that the hosts point at. One router actively forwards traffic for that virtual address while another stands by, ready to take over in seconds. Because resilient default-gateway design is fundamental to real campus networks, FHRP concepts sit squarely in the current CCNA (200-301) blueprint; treat the exact topic weighting as something to confirm against Cisco's published exam topics, since Cisco revises those periodically.

The landscape has two protocols you must know. HSRP (Hot Standby Router Protocol) is Cisco-proprietary and uses Active/Standby roles; its version 1 virtual MAC is 0000.0C07.ACxx, where xx is the group number in hex (version 2 uses 0000.0C9F.Fxxx). VRRP (Virtual Router Redundancy Protocol) is an open standard (RFC 5798) that uses Master/Backup roles, with a virtual MAC of 0000.5E00.01xx, where xx is the VRID. Both present hosts with a single virtual IP and virtual MAC so failover is invisible to the clients. The 'How to Configure HSRP on Cisco' and 'How to Configure VRRP on Cisco' guides walk through each one command by command.

Election is where the two protocols share the same logic but differ in defaults, and this is a classic exam trap. In both, the router with the highest priority (default 100) becomes active/master, and ties break to the highest interface IP address. The crucial difference is preemption: HSRP has preempt OFF by default, so a recovered higher-priority router will NOT reclaim the active role until you explicitly enable it, whereas VRRP has preemption ON by default and the higher-priority master takes back over automatically. Knowing which protocol reclaims control on its own is exactly the kind of detail the exam and real troubleshooting hinge on.

The last core piece is interface (object) tracking. On its own, a router keeps the active role even if its own upstream link fails, which would black-hole traffic. Tracking ties the gateway's priority to the state of a tracked interface or object: when that uplink goes down, the router decrements its priority, and combined with preemption on the peer, the standby/backup takes over the virtual IP. Understanding the interplay of priority, preemption, and tracking is what separates memorizing commands from actually engineering a failover that works.

To master this topic, work it in three passes. First, understand the model on this page: virtual IP and MAC, active/standby versus master/backup, election by priority with an IP tie-break, the preemption default difference, and tracking. Second, keep the command cheat sheet open while you read the HSRP and VRRP configuration guides so the syntax and 'show standby' / 'show vrrp' verification become muscle memory. Third, build and grade the hands-on labs, or the bundle, so you prove failover actually happens: force the active router down, confirm the standby assumes the virtual IP and MAC with no host reconfiguration, and watch preemption behave differently between the two protocols.

Step-by-step guides

Follow these to configure it yourself, command by command.

Practice on real Cisco IOS

Build and grade hands-on Cisco Modeling Labs — the only way it sticks.

Frequently asked questions

HSRP vs VRRP - what is the difference and which should I learn?

Both give hosts a redundant virtual default gateway, but HSRP is Cisco-proprietary (Active/Standby roles, virtual MAC 0000.0C07.ACxx in version 1) while VRRP is an open standard defined in RFC 5798 (Master/Backup roles, virtual MAC 0000.5E00.01xx). The behavioral difference that trips people up is preemption: it is OFF by default in HSRP but ON by default in VRRP. For CCNA, learn both concepts and their defaults; HSRP shows up most on Cisco gear, but VRRP matters in multivendor environments.

Why doesn't my higher-priority router take back the active role after it recovers?

Almost always because preemption is not enabled. In HSRP, preempt is OFF by default, so a router that comes back online with a higher priority will stay in standby and let the current active router keep forwarding until you configure preemption on it. VRRP is the opposite - preemption is on by default, so the higher-priority master reclaims control automatically. If you also use interface tracking, make sure the tracked interface is actually up so the priority has been restored to a winning value.

In what order should I study this, and how long will it take?

Start with this overview to build the mental model, then read the HSRP configuration guide followed by the VRRP configuration guide with the cheat sheet open, and finish by building and grading the labs so you can observe real failover. Most learners who already know basic routing and interface addressing get comfortable with HSRP and VRRP in a few focused study sessions; the concepts are small, but the labs (forcing failover, testing tracking, seeing the preemption difference) are what make it stick.

Study every CCNA topic this way

The CCNA Complete Path sequences all 17 lab bundles into one graded progression you own forever.