3.3.c Configure first hop redundancy protocols, such as HSRP, VRRP
Aligned to Cisco's 350-401 ENCOR v1.2 exam topics.
On this page
What this objective tests
The objective says "configure". The exam wants a working First Hop Redundancy Protocol (FHRP) pair and proof that failover works.
Hosts point to one default gateway. If that gateway fails, the host has no backup. An FHRP gives hosts a virtual default gateway. Two routers share a virtual IP address. One device forwards. The other waits.
ENCOR covers Hot Standby Router Protocol (HSRP) and Virtual Router Redundancy Protocol (VRRP).
Example: HSRPv2 with priority and preempt
Topology:
VLAN 10 hosts -- default gateway 10.10.10.1 (virtual)
|
DSW1 Vlan10 10.10.10.2 -- priority 110
DSW2 Vlan10 10.10.10.3 -- priority 100DSW1:
interface Vlan10
description Users gateway
ip address 10.10.10.2 255.255.255.0
standby version 2
standby 10 ip 10.10.10.1
standby 10 priority 110
standby 10 preemptDSW2:
interface Vlan10
description Users gateway
ip address 10.10.10.3 255.255.255.0
standby version 2
standby 10 ip 10.10.10.1
standby 10 priority 100
standby 10 preemptDSW1 becomes active because 110 is higher than 100. Preempt lets DSW1 take the role back after a recovery.
Expected show standby brief output
On DSW1:
DSW1# show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
Vl10 10 110 P Active local 10.10.10.3 10.10.10.1On DSW2:
DSW2# show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
Vl10 10 100 P Standby 10.10.10.2 local 10.10.10.1Correct output shows:
- One device is
Active. The other isStandby. They agree on the active address. - Both use the same virtual IP.
- The
Pflag confirms preempt is configured.
HSRP tracking
Priority alone is not enough. If DSW1 loses its uplink but VLAN 10 stays up, DSW1 stays active and drops traffic. Track the uplink and lower the priority when it fails.
DSW1:
track 10 interface GigabitEthernet1/0/48 line-protocol
!
interface Vlan10
standby 10 track 10 decrement 30If the uplink fails, DSW1 priority drops from 110 to 80. DSW2 at 100 becomes active.
Verify:
show track 10
show standby briefExample: VRRP equivalent
VRRP is the open standard. The forwarding device is the master. The others are backups.
DSW1:
interface Vlan10
ip address 10.10.10.2 255.255.255.0
vrrp 10 ip 10.10.10.1
vrrp 10 priority 110
vrrp 10 preemptDSW2:
interface Vlan10
ip address 10.10.10.3 255.255.255.0
vrrp 10 ip 10.10.10.1
vrrp 10 priority 100
vrrp 10 preemptExpected output on DSW1:
DSW1# show vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr
Vl10 10 110 1000 Y Master 10.10.10.2 10.10.10.1On DSW2 the state is Backup and the master address is 10.10.10.2.
| Topic | HSRP | VRRP |
|---|---|---|
| Standard | Cisco proprietary | Open standard |
| Forwarding role | Active | Master |
| Waiting role | Standby | Backup |
| Default priority | 100 | 100 |
| Hello destination | 224.0.0.102 (v2), UDP 1985 | 224.0.0.18, protocol 112 |
Lab: HSRP failover test
Topology: the DSW1 and DSW2 diagram from the example above. Both switches have an uplink to a core router. A test host in VLAN 10 uses gateway 10.10.10.1.
Do these steps:
- Configure HSRPv2 on DSW1 and DSW2 with the configs above.
- Verify with
show standby briefon both switches. Confirm DSW1 is active. - Ping the virtual IP and an upstream address from the test host. Confirm both work.
- Add tracking on DSW1 with a decrement of 30.
- Shut the DSW1 uplink. Start a continuous ping from the host before you do this.
- Check
show standby briefon DSW2. Confirm DSW2 is now active. Count the lost pings. - Check
show track 10on DSW1. Confirm the track is down and the priority is 80. - Restore the DSW1 uplink. Watch preempt give the active role back to DSW1.
- Remove the tracking config. Repeat the failover. Explain why DSW1 now keeps the active role and drops traffic.
Exam traps
- Hosts must point to the virtual IP, not a physical interface IP.
- Higher priority wins. Preempt controls whether a recovered device takes the role back.
- Tracking lowers the priority when an upstream condition fails.
- The FHRP can be healthy while upstream routing is broken. Tracking prevents this black hole.
- Both devices active means the peers cannot hear each other. Check the VLAN, trunks, and STP first.
- HSRP active/standby and VRRP master/backup are the same idea with different names.
Pass check
You are ready when you can do these things:
- Configure an HSRPv2 pair with priority, preempt, and tracking.
- Read
show standby briefandshow vrrp briefand name the forwarding device. - Predict the failover result of a priority change and an uplink failure.
- Explain why both-active is a peer communication problem, not a priority problem.