CCNA First Hop Redundancy: Reading HSRP and VRRP Status, Election, Preemption and Failover
A first hop redundancy protocol (FHRP) gives the hosts on a subnet one virtual default gateway address that two or more routers share, so the gateway survives the failure of any single router. This lesson covers CCNA v2.0 exam topic 3.4, interpreting the operational status of HSRP and VRRP: what the states and show standby / show vrrp columns mean, how the forwarding router is elected, why HSRP needs preempt while VRRP preempts by default, how tracking changes priority, what happens at failover, which virtual MACs and hello addresses each protocol uses, why both routers can claim the forwarding role, and how FHRPs share load and protect IPv6 gateways.
On this page10 sections
- What is a first hop redundancy protocol, and why do hosts need one?
- How do HSRP and VRRP compare?
- What do the HSRP states mean, and how do you read show standby?
- How is the HSRP Active router elected, and when does preemption apply?
- How do VRRP Master election and preemption work?
- Which virtual MAC and hello address does each protocol use?
- How does object tracking change an FHRP's priority?
- What happens during a failover?
- Why would both routers claim Active or Master?
- How do FHRPs share load and work for IPv6?
- Explain why hosts use the FHRP virtual IP and virtual MAC as their gateway and why routing-protocol convergence alone does not protect them
- Read show standby, show standby brief and show vrrp brief to identify the forwarding router, the next in line and each router's state
- Predict HSRP Active and VRRP Master elections from priority and IP address, including the VRRP address owner at priority 255
- Decide when a router takes over, using HSRP's default-off preemption, VRRP's default-on preemption, preempt delay and object-tracking decrements
- Identify the protocol, version and group from a virtual MAC or a hello capture, and diagnose why both routers claim Active or Master
- Describe failover timing and behaviour, load sharing with multiple groups, and HSRPv2 / VRRPv3 virtual link-local gateways for IPv6
What is a first hop redundancy protocol, and why do hosts need one?
A first hop redundancy protocol (FHRP) lets two or more routers share one virtual IP address and one virtual MAC address, so hosts can keep using the same default gateway when the router forwarding for it fails. Hosts are configured (statically or by DHCP) with a single default gateway address and resolve it with ARP once. If that address belongs to one physical router and the router fails, every host on the subnet loses off-subnet connectivity until the router returns or someone changes the hosts.
A routing protocol does not fix this. OSPF between the gateway routers and the core can reconverge in seconds, but hosts do not run OSPF: they still send frames to the failed router's MAC address. The fix is at the host's first hop:
- the routers in an FHRP group agree on a virtual IP (for example 10.1.10.1) that is not any single router's interface address in HSRP (VRRP also allows the virtual IP to be a router's real address, covered below);
- hosts use the virtual IP as their default gateway, and the DHCP pool should hand out that address, never a router's interface address;
- one router at a time owns the virtual MAC and answers ARP for the virtual IP. If it fails, another router takes over the same virtual IP and MAC, so the hosts' ARP caches stay valid and nothing changes on the hosts.
CCNA v2.0 exam topic 3.4 asks you to interpret the operational status of two FHRPs: Cisco's HSRP (Hot Standby Router Protocol) and the open-standard VRRP (Virtual Router Redundancy Protocol, version 3 in RFC 5798 on IOS XE). In practice that means reading show standby and show vrrp output and predicting which router forwards, which takes over, and why a group is misbehaving.
How do HSRP and VRRP compare?
HSRP and VRRP solve the same problem the same way, one forwarding router per group with the others waiting, but they differ in names, defaults and packet details, and those differences change how a group behaves when routers join, fail and return.
| HSRP | VRRP (VRRPv3 on IOS XE) | |
|---|---|---|
| Standard | Cisco proprietary | Open standard (RFC 5798) |
| Forwarding router | Active | Master |
| Waiting routers | one Standby, any others in Listen | all Backup |
| Default priority | 100 (range 0–255) | 100 (configurable 1–254; 255 is reserved for the address owner) |
| Tie-break | highest interface IP address | highest interface IP address |
| Preemption | off by default | on by default |
| Virtual IP | must be an unused address on the subnet | unused address, or a router's own interface address (that router is the owner) |
| Hellos / advertisements | v1: 224.0.0.2, v2: 224.0.0.102, both UDP 1985 | 224.0.0.18, IP protocol 112 |
| Default timers | hello 3 s, hold 10 s | advertisement 1 s; master down interval about 3 × advertisement + skew |
| Group numbers | v1: 0–255, v2: 0–4095 | 1–255 |
| IPv4 virtual MAC | v1: 0000.0c07.acXX, v2: 0000.0c9f.fXXX | 0000.5e00.01XX |
Two rows matter most. Preemption: a VRRP router with a higher priority takes the Master role back on its own, while an HSRP router needs standby <group> preempt to do the same. Terminology: Active/Standby/Listen are HSRP words, Master/Backup are VRRP words, and a statement that mixes them (a VRRP router "in Standby") is describing the wrong protocol. GLBP, a third Cisco FHRP that load-balances within one group, is not part of this exam topic.
What do the HSRP states mean, and how do you read show standby?
An HSRP router moves through six states, and the State column of show standby brief tells you which one it is in now. Only the Active router forwards traffic sent to the virtual MAC; the Standby router is next in line; any further routers sit in Listen.
| State | What it means |
|---|---|
| Init (Initial) | HSRP is configured but not running, typically because the interface is down or HSRP has just been configured. |
| Learn | The router does not know the virtual IP yet (none configured locally) and has not heard a hello from the Active router to learn it. |
| Listen | The router knows the virtual IP but is neither Active nor Standby. It monitors hellos and steps up only if the Active or Standby role becomes vacant. |
| Speak | The router sends hellos and takes part in the election for Active or Standby. A transient state. |
| Standby | Next in line: it takes over if the Active router fails. One per group. |
| Active | Forwards packets sent to the virtual MAC and answers ARP for the virtual IP. One per group. |
R1#show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
Gi0/0/1 10 110 P Active local 10.1.10.3 10.1.10.1
Read each column in turn: Grp is the group number (both routers must use the same one); Pri is the current priority (after any tracking decrement); P marks preemption; Active and Standby name the routers in those roles by their real interface addresses, with local meaning this router; Virtual IP is the address hosts use as their gateway. unknown under Standby means this router hears no peer at all.
The detailed show standby adds the timers, preemption, the virtual MAC, and the configured versus current priority:
R1#show standby Gi0/0/1
GigabitEthernet0/0/1 - Group 10
State is Active
Virtual IP address is 10.1.10.1
Active virtual MAC address is 0000.0c07.ac0a (MAC In Use)
Hello time 3 sec, hold time 10 sec
Preemption enabled
Active router is local
Standby router is 10.1.10.3, priority 100 (expires in 8.432 sec)
Priority 110 (configured 110)
Because the output is per router, you can identify the forwarding router from any member: on a Standby router, the address under Active is the router currently forwarding for the virtual IP.
How is the HSRP Active router elected, and when does preemption apply?
HSRP elects the Active router by highest priority (default 100, range 0–255); if priorities tie, the router with the highest interface IP address on that subnet wins. The next-best router becomes Standby, and every other router goes to Listen. Priority is always compared first: a router left at the default 100 beats one configured with 80 whatever their addresses, and a configured priority below 100 loses to a router that simply uses the default.
The catch is that the election only decides roles when there is a vacancy, for example when routers boot together or the Active fails. HSRP preemption is disabled by default, so a router that comes up and hears an existing Active router does not take over, even with a higher priority. It settles into Standby (or Listen). This is why a high-priority router that was reloaded often comes back as Standby.
standby <group> preemptlets this router take the Active role from a lower-priority Active router. It must be configured on the router that should take over; preempt on the current Active router does not hand anything back.- Preempt does not overrule priority. A router with preempt but a lower priority stays where the election puts it.
- When the Active router fails, the Standby becomes Active without needing preempt (the role is vacant), and a Listen router becomes the new Standby.
standby <group> preempt delay minimum <seconds>makes a preempting router wait before it takes over. Use it when a returning router would otherwise become Active before its routing protocol has converged and then black-hole traffic. It delays only the takeover by the returning router, so failover when the Active fails is no slower. Interface tracking does not solve this problem: the router's interfaces are already up while its routing protocol is still converging, so a line-protocol track never lowers its priority.
interface GigabitEthernet0/0/1
ip address 10.1.10.2 255.255.255.0
standby 10 ip 10.1.10.1
standby 10 priority 110
standby 10 preempt delay minimum 60
A useful rule for any HSRP scenario: first work out each router's current priority, then ask whether a role is vacant. If none is, only a router with preempt and a higher priority can change who is Active.
How do VRRP Master election and preemption work?
VRRP elects the Master by highest priority, then highest interface IP, and every other router in the group is a Backup; unlike HSRP there is no separate Standby or Listen role. The VRRP states are Initialize, Backup and Master, and show vrrp brief prints them in capitals:
R1#show vrrp brief
Interface Grp A-F Pri Time Own Pre State Master addr/Group addr
Gi0/0/1 20 IPv4 120 0 N Y MASTER 10.1.20.2(local) 10.1.20.1
Three VRRP rules differ from HSRP:
- Preemption is on by default. A Backup whose priority is higher than the Master's takes over without any command. With three routers at 200, 180 and 90, the 200 router is Master and the other two are both Backup.
- Preemption needs a strictly higher priority. A Backup with the same priority as the Master does not take over, even if its IP address is higher; the address tie-break applies only when routers are choosing a Master together. To make a Backup take over without touching the Master, its priority must exceed the Master's, not equal it.
- The address owner. VRRP allows the virtual IP to be one router's real interface address. That router is the owner, runs at priority 255 automatically and is always Master while it is up; no configured priority (which can only reach 254) can beat it.
fhrp version vrrp v3
interface GigabitEthernet0/0/1
ip address 10.1.20.2 255.255.255.0
vrrp 20 address-family ipv4
address 10.1.20.1 primary
priority 120
Because preemption is the default, a migration from HSRP to VRRP with the same priorities and no preempt commands changes behaviour: a reloaded high-priority router that used to return as HSRP Standby now returns as VRRP Master. Preemption can be turned off with no preempt under the VRRP group.
Which virtual MAC and hello address does each protocol use?
Each FHRP builds its virtual MAC from a fixed prefix plus the group number in hex, and sends its hellos to a fixed multicast address, so a MAC address or a packet capture identifies the protocol, version and group.
| Protocol | Virtual MAC | Group 10 example | Hellos sent to |
|---|---|---|---|
| HSRP version 1 | 0000.0c07.acXX (XX = group in hex, 0–255) | 0000.0c07.ac0a | 224.0.0.2, UDP 1985 |
| HSRP version 2 (IPv4) | 0000.0c9f.fXXX (XXX = group in hex, 0–4095) | 0000.0c9f.f00a | 224.0.0.102, UDP 1985 |
| HSRP version 2 (IPv6) | 0005.73a0.0XXX | 0005.73a0.000a | FF02::66, UDP 2029 |
| VRRP (IPv4) | 0000.5e00.01XX | 0000.5e00.010a | 224.0.0.18, IP protocol 112 |
| VRRPv3 (IPv6) | 0000.5e00.02XX | 0000.5e00.020a | FF02::12, IP protocol 112 |
Convert carefully: group 30 is hex 1e (0000.5e00.011e in VRRP), group 200 is hex c8 (0000.0c9f.f0c8 in HSRPv2). Working backwards from a host's ARP entry tells you which group a new router must join and whether it needs standby version 2.
Practical consequences:
- Version is set per interface.
standby version 2applies to every HSRP group on that interface. Enabling it on one router (for example to add an IPv6 group, which requires version 2) moves that router's IPv4 groups to the v2 MAC and to 224.0.0.102 as well. - There is no version negotiation. A v1 router listens on 224.0.0.2 and a v2 router on 224.0.0.102, so mixed versions never hear each other and both claim Active.
- Group numbers above 255 need version 2. A team that numbers groups to match VLAN IDs above 255 must enable version 2 first, or the router rejects the group.
- Reusing a group number in different VLANs is harmless. Switches learn MAC addresses per VLAN, so 0000.0c07.ac01 in VLAN 10 and in VLAN 20 are separate entries.
- ACLs must permit the hellos. An inbound ACL ending in
deny ip any anyon the FHRP interface drops the hellos unless it permits UDP 1985 to the HSRP address, or IP protocol 112 to 224.0.0.18 for VRRP.
How does object tracking change an FHRP's priority?
Object tracking lowers a router's FHRP priority by a set decrement while a tracked object (typically an uplink's line protocol) is down, so a router with a dead uplink can hand the gateway role to its peer. Tracking only lowers the local priority; whether the peer actually takes over depends on the peer's preemption.
track 1 interface GigabitEthernet0/0/0 line-protocol
!
interface GigabitEthernet0/0/1
standby 10 priority 125
standby 10 track 1 decrement 35
In show standby the result appears as current versus configured priority:
Priority 90 (configured 125)
Track object 1 state Down decrement 35
Rules for reading tracking scenarios:
- The decrement must push the priority below the peer's. 150 − 15 = 135 still beats a peer at 130; 150 − 25 = 125 does not. Equal priorities fall back to the IP tie-break, so aim strictly below.
- Decrements add up. With two tracked uplinks at 15 each, a router at 140 drops to 125 with one failure and 110 with both. Check which combination of failures crosses the peer's priority.
- In HSRP the peer needs preempt. The Active router does not resign because its priority fell; the Standby router takes over only if it has
standby <group> preempt. Without it, a Standby with a higher priority waits forever while the Active router keeps forwarding with a dead uplink. - In VRRP preemption is already on, so a lower priority on the Master is enough for a higher-priority Backup to take over, and when the object comes back up the original router's priority is restored and it preempts back.
- In HSRP the router whose priority recovers needs preempt to take the Active role back.
What happens during a failover?
When the forwarding router fails, the next router waits for its failure-detection timer to expire, takes over the same virtual IP and virtual MAC, and sends gratuitous ARP so the switches update their MAC address tables. Hosts change nothing.
- HSRP detection. The Standby router expects a hello every 3 seconds and declares the Active router dead when the hold timer (10 seconds by default) expires. After a sudden power loss, failover can therefore take up to about 10 seconds. (If the Active router is shut down gracefully, it sends a resign message and the Standby takes over at once.)
- VRRP detection. The Master advertises every 1 second by default, and a Backup takes over when the master down interval expires: three advertisement intervals plus a skew time that is shorter for higher-priority Backups. At priority 100 that is about 3.6 seconds, which is why VRRP with defaults fails over faster than HSRP with defaults. A single missed advertisement is not enough. Detection relies only on missed advertisements: the protocol gets no link-state notice from the switch, and BFD, which some platforms can add for faster detection, is not enabled by default.
- What the new forwarding router does. It starts answering ARP for the virtual IP with the virtual MAC, never its burned-in MAC, and sends a gratuitous ARP sourced from the virtual MAC so switches move the MAC to its port.
- What hosts do. Nothing: their ARP entry for the gateway still maps the virtual IP to the same virtual MAC, so they keep sending frames as before.
- What the other routers do. In HSRP the old Standby becomes Active and the best Listen router becomes the new Standby. In VRRP the highest-priority Backup becomes Master and the rest stay Backup.
Two observations help when reading host-side evidence. A host's ARP request for the virtual IP gets one reply, from the Active (Master) router, carrying the virtual MAC. A traceroute's first hop shows the real interface address of the router that is currently forwarding, because the ICMP time-exceeded message is sourced from that interface, not from the virtual IP. So on a subnet whose virtual gateway is 172.16.5.1, a first hop of 172.16.5.3 means the router whose interface is 172.16.5.3 is the one forwarding now.
Why would both routers claim Active or Master?
Both routers show Active (HSRP) or Master (VRRP) when neither is processing the other's hellos: each believes it is alone, so each claims the role. In HSRP the giveaway is unknown under Standby on both routers. Two routers answering ARP for the same virtual IP with the same virtual MAC makes the switches flip the MAC between ports, so users see intermittent gateway failures. This is a fault, not load sharing.
| Cause | How to spot it |
|---|---|
| Different group numbers | The Grp column differs; the virtual IP may still be the same. |
| HSRP version mismatch | standby version 2 on one router only: hellos go to 224.0.0.102 versus 224.0.0.2. |
| Different protocols | A capture shows UDP 1985 to 224.0.0.2 from one router and IP protocol 112 to 224.0.0.18 from the other: one runs HSRP, the other VRRP. |
| Authentication mismatch | HSRP authentication strings differ, so each router discards the other's hellos. (VRRPv3 as defined in RFC 5798 has no authentication.) |
| Hellos filtered | An ACL on the interface drops UDP 1985 or IP protocol 112. |
| Layer 2 split | The routers cannot ping each other's interface addresses, for example because the VLAN is missing from the trunk between their switches. Hosts on each side may still reach other subnets through their local router. |
Settings that do not cause dual Active: equal priorities (the IP tie-break settles it), preemption on both or neither, and different configured hello/hold timers (the routers still exchange hellos and elect one Active). If the routers can ping each other, the Layer 2 path is fine and the cause is in how the hellos are sent or accepted.
Tip. Most questions in this topic are evidence-first: the stem shows show standby brief, show standby, show vrrp output, a running-config excerpt, a host's ARP table or traceroute, or a packet capture, and asks which router forwards, what a state means, why a router is not Active, or what caused a fault. Expect elections decided by priority and then IP address (including three-router groups with a Listen router and the VRRP address owner), preemption scenarios where HSRP and VRRP defaults differ, tracking arithmetic with current versus configured priority, virtual MAC and hello-address conversions between hex group numbers, failover timing and gratuitous ARP behaviour, dual Active/Master troubleshooting, load sharing across groups, and IPv6 gateways learned from router advertisements. Constraints such as a single change, a router you may not touch, or failover that must not get slower decide between workable options, and Select TWO items ask for two true results or two independent causes. Routing-table reading, static routes and OSPF belong to the sibling topics.
- Hosts point at the FHRP virtual IP, never a router's interface address; the forwarding router answers ARP for it with the virtual MAC, so failover needs no change on the hosts.
- HSRP roles are Active, Standby and Listen (states Init, Learn, Listen, Speak, Standby, Active); VRRP roles are Master and Backup (states Initialize, Backup, Master).
- Both elect by highest priority (default 100), then highest interface IP; a VRRP address owner runs at priority 255 and is always Master while up.
- HSRP preemption is off by default and must be configured on the router that should take over; VRRP preemption is on by default and needs a strictly higher priority.
- Tracking decrements lower the current priority (shown as Priority X (configured Y)) and add up; the peer takes over only if the new priority is below it and the peer can preempt.
- HSRPv1 uses 0000.0c07.acXX and 224.0.0.2, HSRPv2 0000.0c9f.fXXX and 224.0.0.102 (both UDP 1985), VRRP 0000.5e00.01XX and 224.0.0.18 (IP protocol 112).
- Default failover: HSRP up to the 10-second hold time; VRRP about 3 advertisements plus skew (about 3.6 s at priority 100); the new forwarder sends gratuitous ARP from the virtual MAC.
- Both routers Active or Master means hellos are not being processed: group, version, protocol or authentication mismatch, filtered hellos, or a Layer 2 split.
- Load sharing needs multiple groups with a different forwarding router in each; IPv6 HSRP requires version 2 and the Active router advertises the virtual link-local in RAs.
Frequently asked questions
What is the difference between HSRP and VRRP?
HSRP is Cisco proprietary and VRRP is an open standard (RFC 5798 for VRRPv3). Both give hosts a shared virtual gateway with one forwarding router per group. HSRP calls the roles Active, Standby and Listen, preempts only when configured, and sends hellos to 224.0.0.2 (v1) or 224.0.0.102 (v2) on UDP 1985. VRRP calls them Master and Backup, preempts by default, allows a router's real address as the virtual IP, and advertises to 224.0.0.18 using IP protocol 112.
Is HSRP preemption enabled by default?
No. HSRP preemption is disabled by default, so a higher-priority router that boots after another router has become Active stays Standby until the Active router fails. Configure standby group-number preempt on the router that should take the Active role back. VRRP is the opposite: preemption is enabled by default.
Which router becomes the HSRP Active router when priorities are equal?
When HSRP priorities are equal, the router with the highest IP address on the HSRP interface becomes Active. Priority is always compared first, so a router with the default priority of 100 beats a router configured with priority 80 regardless of addresses.
What does Priority 90 (configured 110) mean in show standby?
It means the router is configured with HSRP priority 110 but is currently running at 90 because a tracked object is down and its decrement (here 20) has been subtracted. The current value is what counts in the election, and the peer takes the Active role only if the peer has preempt configured and a higher priority than 90.
Why do both HSRP routers show the Active state?
Both routers show Active, with unknown as the Standby router, when neither is processing the other's hellos. Common causes are different group numbers, an HSRP version 1 and version 2 mismatch, different authentication strings, an ACL that drops UDP 1985, or a Layer 2 problem such as the VLAN missing from a trunk. Equal priorities, preempt settings and different timers do not cause it.
What MAC address does HSRP use?
HSRP version 1 uses virtual MAC 0000.0c07.acXX, where XX is the group number in hex (group 10 is 0000.0c07.ac0a). HSRP version 2 uses 0000.0c9f.fXXX for IPv4 (group 10 is 0000.0c9f.f00a) and 0005.73a0.0XXX for IPv6. VRRP uses 0000.5e00.01XX for IPv4 and 0000.5e00.02XX for IPv6.
How long does HSRP take to fail over?
With default timers the HSRP Standby router declares the Active router dead when its 10-second hold timer expires, so failover after a sudden failure can take up to about 10 seconds. VRRPv3 with default settings fails over in about 3.6 seconds, because its master down interval is three 1-second advertisement intervals plus a short skew time.
How do HSRP and VRRP provide a default gateway for IPv6 hosts?
They protect a virtual link-local address that hosts learn from router advertisements. HSRP needs version 2 for IPv6, derives the virtual link-local from the virtual MAC 0005.73a0.0XXX, and the Active router sends the RAs. VRRPv3 uses a configured link-local virtual address, and the Master answers neighbor solicitations for it with the virtual MAC 0000.5e00.02XX.
Source
This lesson covers the "IP Routing" domain of the official CCNA exam guide. Vendors revise their guides — check the source for the current version.
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.