LESSON PURPOSE Build a practical understanding of how FHRPs provide a resilient default gateway for end hosts, how gateway failover occurs, and how Cisco HSRP and related FHRP concepts are configured, verified, and troubleshot. |
Lesson Overview
End devices normally use one default-gateway IP address. If that Layer 3 gateway fails, hosts can lose off-subnet connectivity even when redundant links and routing paths still exist. FHRP allows multiple routers or multilayer switches to present one logical gateway to hosts.
This lesson covers the virtual IP and virtual MAC, gateway roles, election and failover, priority and preemption, tracking, and the practical differences among HSRP, VRRP, and GLBP, with Cisco IOS verification and troubleshooting.
Learning Objectives
• Explain why a redundant Layer 3 network still needs first-hop default-gateway redundancy.
• Describe the virtual IP and virtual MAC and how hosts keep using the same gateway during failover.
• Explain HSRP roles and behavior, including Active, Standby, Listen, group number, hello/hold timers, priority, and preemption.
• Describe HSRP Active/Standby election and the effect of router, SVI, interface, or tracked-uplink failure.
• Configure basic HSRP on Cisco routers or multilayer switches, including virtual IP, priority, preempt, and tracking.
• Verify FHRP operation with show standby, show standby brief, interface checks, ping, and traceroute.
• Troubleshoot group/virtual-IP mismatches, missing preemption, incorrect priority, VLAN/SVI failures, and upstream reachability problems.
• Compare HSRP, VRRP, and GLBP at a practical CCNA level, including roles, standards/proprietary status, and load-sharing behavior.
CCNA ALIGNMENT — Supports the CCNA requirement to understand the purpose, functions, and concepts of first-hop redundancy, with emphasis on a resilient virtual default gateway, failover behavior, and basic configuration/verification. |
1. FHRP Overview and the Default-Gateway Problem
What problem does FHRP solve?
An end host normally has one configured default gateway. If that Layer 3 gateway fails, the host may still be connected to the LAN but cannot reach remote networks. First Hop Redundancy Protocols solve this single point of failure by presenting a virtual gateway identity shared by two or more routers or multilayer switches.
- Hosts configure a virtual IP (VIP) as the default gateway.
- The FHRP group also owns a virtual MAC address (or multiple virtual MACs in GLBP).
- One or more physical gateways cooperate using control messages.
- If the preferred gateway fails, another member takes over without requiring host reconfiguration.
- Tracking can make failover react to an upstream failure even when the LAN-facing SVI remains up.
FHRP replaces a single physical default gateway with a resilient virtual gateway.
Normal host packet flow
1. PC1 wants to reach a remote subnet and decides to send the packet to its default gateway, 192.168.10.1.
2. PC1 ARPs for 192.168.10.1. The FHRP owner answers with a virtual MAC address.
3. PC1 builds an Ethernet frame whose destination MAC is the FHRP virtual MAC.
4. The current forwarding FHRP device receives the frame and routes the IP packet upstream.
5. If the current gateway fails, another FHRP member begins forwarding traffic for the same virtual identity.
Common FHRP terminology
|
Term |
Meaning |
|
Virtual IP (VIP) |
The default-gateway address configured on end hosts. |
|
Virtual MAC |
Layer 2 identity associated with the virtual gateway. |
|
Group / Virtual Router ID |
Logical FHRP instance; allows multiple redundant gateways on one interface. |
|
Priority |
Election preference. Higher values are generally preferred. |
|
Preemption |
Allows a higher-priority device to reclaim the active/master/AVG role after it returns. |
|
Preempt delay |
Wait period before a recovered device takes the role back. |
|
Tracking |
Changes priority or forwarding eligibility when an interface/route/object fails. |
|
Hello / Advertisement |
Control packets used to maintain group state and detect peer failure. |
2. FHRP Message Transport and Quick Reference
The protocols all solve the first-hop gateway problem, but they use different control packets and transport methods.
|
Protocol |
Roles |
IPv4 Control Destination |
Transport |
Default Timer |
Default Preempt |
|
HSRPv1 |
Active / Standby |
224.0.0.2 |
UDP 1985 |
Hello 3 s / Hold 10 s |
Disabled |
|
HSRPv2 |
Active / Standby |
224.0.0.102 |
UDP 1985 |
Hello 3 s / Hold 10 s |
Disabled |
|
VRRP |
Master / Backup |
224.0.0.18 |
IP protocol 112 (no TCP/UDP port) |
Advertisement 1 s |
Enabled |
|
GLBP |
AVG + AVFs |
224.0.0.102 |
UDP 3222 |
Hello 3 s / Hold 10 s |
AVG preempt disabled |
|
IPv6 control-plane notes • HSRPv2 uses FF02::66 for IPv6 hello packets and UDP port 2029 on supported Cisco platforms. • VRRPv3 uses FF02::12 for IPv6 advertisements and still uses IP protocol 112. • GLBP support varies by platform; verify the specific IOS/IOS XE feature set when IPv6 is required. |
Useful packet-capture filters
Wireshark / capture filters
|
HSRP: udp.port == 1985 VRRP: ip.proto == 112 or ipv6.nxt == 112 GLBP: udp.port == 3222 |
3. HSRP - Hot Standby Router Protocol
Purpose and use case
HSRP is Cisco proprietary and is widely used when the network is predominantly Cisco. It provides a simple Active/Standby model: one device forwards traffic for the virtual gateway while one designated Standby is ready to take over.
HSRPv2 example using group 10 and VLAN 10.
HSRP versions
|
Feature |
HSRPv1 |
HSRPv2 |
|
IPv4 multicast |
224.0.0.2 |
224.0.0.102 |
|
IPv4 UDP port |
1985 |
1985 |
|
Group range |
0-255 |
0-4095 |
|
IPv4 virtual MAC |
0000.0c07.acXX |
0000.0c9f.fXXX |
|
Packet format |
Original format |
TLV-based enhancements |
|
IPv6 |
No |
Supported through HSRPv2 on capable platforms |
HSRP messages
|
Message |
Purpose |
|
Hello |
Advertises HSRP state, priority, timers, and group information. |
|
Coup |
Sent when a device wants to become Active, typically during preemption. |
|
Resign |
Sent by an Active device giving up the Active role. |
HSRP states
|
State |
Meaning |
|
Initial |
HSRP has not started or the interface is not usable. |
|
Learn |
Device has not yet learned all required group information. |
|
Listen |
Knows the virtual IP but is neither Active nor Standby. |
|
Speak |
Sends hellos and participates in election. |
|
Standby |
Ready to become Active if the Active device fails. |
|
Active |
Forwards packets sent to the virtual MAC and represents the virtual gateway. |
HSRP election process - step by step
1. HSRP members join the same group and exchange hello messages.
2. The device with the highest HSRP priority is preferred for the Active role.
3. If priorities tie, the device with the higher interface IPv4 address wins.
4. The next-best device becomes Standby; additional members normally remain in Listen state.
5. Hosts use only the virtual IP and virtual MAC; they do not care which physical device is Active.
Priority and preemption
Default HSRP priority: 100.
Preemption is disabled by default.
Without preemption, a recovered higher-priority device does not automatically take the Active role back.
With preemption enabled, a higher-priority device can send a Coup and become Active. A delay is often used to allow routing protocols and uplinks to stabilize first.
Timers
Default Hello time: 3 seconds.
Default Hold time: 10 seconds.
If the Standby device stops hearing the Active device for the hold time, it can take over.
Both sides should use compatible timer values. Aggressive timers should be tested before production use.
Tracking
A LAN-facing SVI can remain up even if the preferred gateway loses its WAN or routed uplink. Object tracking solves this by reducing the HSRP priority when an important interface, route, or tracked object fails. The default decrement is commonly 10 if no explicit decrement is configured.
HSRPv2 basic configuration
DSW1 - preferred Active
|
ip routing ! interface Vlan10 ip address 192.168.10.2 255.255.255.0 standby version 2 standby 10 ip 192.168.10.1 standby 10 priority 110 standby 10 preempt delay minimum 30 standby 10 timers 3 10 no shutdown |
DSW2 - Standby
|
ip routing ! interface Vlan10 ip address 192.168.10.3 255.255.255.0 standby version 2 standby 10 ip 192.168.10.1 standby 10 priority 100 standby 10 preempt delay minimum 30 standby 10 timers 3 10 no shutdown |
HSRP tracking configuration
DSW1 - track upstream interface
|
track 1 interface GigabitEthernet1/0/48 line-protocol ! interface Vlan10 standby 10 track 1 decrement 30 |
|
Why decrement 30? • DSW1 starts at priority 110. • If the tracked uplink fails, its priority becomes 80. • DSW2 remains at priority 100 and is therefore preferred. • This prevents DSW1 from staying Active while it has no useful upstream path. |
HSRP verification
Verification commands
|
show standby brief show standby show track 1 show ip arp 192.168.10.1 show mac address-table address 0000.0c9f.f00a show logging | include HSRP|standby |
HSRP Internet-connected topology and full failover process
HSRP end-to-end behavior: the LAN keeps one virtual gateway while uplink tracking moves the Active role to the router with working Internet reachability.
1. PC1 uses only the HSRP virtual IP 192.168.10.254 as its default gateway. It never points directly to GW1 or GW2.
2. During normal operation GW1 has priority 110, becomes Active, answers ARP for the HSRP virtual MAC, and routes traffic toward upstream router R0.
3. GW2 has priority 100 and remains Standby while it continues receiving HSRP hello packets.
4. A tracking object monitors GW1 upstream link toward R0. If that link fails while the VLAN interface stays up, the tracking decrement reduces GW1 priority from 110 to 80.
5. GW2 now has the higher effective priority. With preemption enabled it becomes Active and starts using the same virtual IP and virtual MAC.
6. PC1 does not change its IP configuration or default gateway. New frames for remote traffic are forwarded by GW2 toward R0 and the Internet.
7. When GW1 recovers, a preempt delay allows its routing/uplink state to stabilize before it reclaims Active status.
Example upstream routing used by the failover lab
GW1 / GW2 default routes toward R0
|
! GW1 ip route 0.0.0.0 0.0.0.0 10.0.1.2 ! ! GW2 ip route 0.0.0.0 0.0.0.0 10.0.2.2 |
R0 return routes and Internet test loopback
|
interface Loopback0 ip address 198.51.100.100 255.255.255.255 ! ip route 192.168.10.0 255.255.255.0 10.0.1.1 ip route 192.168.10.0 255.255.255.0 10.0.2.1 5 |
|
Important design point • FHRP protects the first hop. It does not automatically know whether the preferred gateway can still reach the Internet. • Tracking an upstream interface, route, or IP SLA object makes the first-hop decision reflect real path health. • If the gateway device itself fails completely, HSRP peer loss alone triggers failover; tracking is especially useful when only the upstream path fails. |
4. VRRP - Virtual Router Redundancy Protocol
Purpose and use case
VRRP is an open-standard first-hop redundancy protocol. It is a common choice when multi-vendor interoperability is required. VRRP uses a Master/Backup model and does not use TCP or UDP; advertisements are carried directly using IP protocol number 112.
VRRP example using Virtual Router ID 10.
VRRP control-plane details
|
Item |
IPv4 |
IPv6 / VRRPv3 |
|
Multicast |
224.0.0.18 |
FF02::12 |
|
IP protocol |
112 |
112 |
|
TCP/UDP port |
None |
None |
|
Virtual MAC |
0000.5e00.01XX |
0000.5e00.02XX |
|
Default advertisement |
1 second |
1 second |
VRRP roles and states
Initialize - VRRP is starting or the interface is unavailable.
Backup - monitors Master advertisements and is ready to take over.
Master - owns the virtual-router forwarding role and sends advertisements.
VRRP election and priority
1. Backups compare VRRP priority. The highest priority is preferred.
2. The normal configurable range is 1-254; the default is 100.
3. A device that owns the virtual IP address uses priority 255 and has special preference.
4. If priorities tie, the higher IP address is used as the tie-breaker.
5. Only the Master sends the periodic VRRP advertisements during normal operation.
VRRP preemption
Preemption is enabled by default on Cisco VRRP implementations.
A higher-priority Backup that becomes available can take over from a lower-priority Master.
A minimum preempt delay can prevent an unstable or newly booted device from taking over too quickly.
VRRP Master Down Interval
A Backup does not simply wait a fixed hold timer. It derives a Master Down Interval from the advertisement interval and a skew value influenced by priority. A commonly used expression is:
|
Master Down Interval • Master Down Interval = (3 x Advertisement Interval) + Skew Time • Higher-priority Backups have a smaller skew and can take over slightly sooner. |
VRRP basic configuration
DSW1 - preferred Master
|
interface Vlan10 ip address 192.168.10.2 255.255.255.0 vrrp 10 ip 192.168.10.1 vrrp 10 priority 120 vrrp 10 preempt delay minimum 20 no shutdown |
DSW2 - Backup
|
interface Vlan10 ip address 192.168.10.3 255.255.255.0 vrrp 10 ip 192.168.10.1 vrrp 10 priority 100 vrrp 10 preempt delay minimum 20 no shutdown |
VRRP tracking example
Track upstream state and decrement VRRP priority
|
track 1 interface GigabitEthernet1/0/48 line-protocol ! interface Vlan10 vrrp 10 track 1 decrement 30 |
VRRP verification
Verification commands
|
show vrrp show vrrp brief show track 1 show ip arp 192.168.10.1 show mac address-table address 0000.5e00.010a |
VRRP Internet topology and full working/failover process
VRRP end-to-end topology showing normal Master forwarding and Backup takeover while the host continues using the same virtual gateway.
1. GW1 and GW2 are connected to the same user VLAN and advertise one Virtual Router ID and one virtual IP address.
2. GW1 has the higher priority and becomes Master. It owns the forwarding role for the virtual MAC and sends VRRP Advertisements to 224.0.0.18 using IP protocol 112.
3. GW2 remains Backup and calculates a Master Down Interval from the advertisement interval and priority-derived skew time.
4. PC1 uses the virtual IP as its default gateway. The physical gateway addresses are not configured on the PC.
5. If GW1 fails completely, advertisements stop. After the Master Down Interval expires, the best Backup transitions to Master and forwards traffic toward R0/Internet.
6. If only GW1 upstream/Internet connectivity fails, base VRRP by itself may still see GW1 as alive. On Cisco platforms that support tracking, track the upstream interface/object and decrement VRRP priority so GW2 becomes preferred.
7. VRRP preemption is normally enabled, so when the higher-priority gateway returns it can reclaim Master after any configured delay.
VRRP upstream-path tracking example
Cisco IOS/IOS XE style example - platform support/syntax may vary
|
track 10 interface GigabitEthernet1/0/48 line-protocol ! interface Vlan10 vrrp 10 ip 192.168.10.254 vrrp 10 priority 120 vrrp 10 preempt delay minimum 30 vrrp 10 track 10 decrement 30 |
End-to-end tests
|
show vrrp brief show vrrp show track 10 ping 198.51.100.100 source 192.168.10.2 ! from PC1: ping/traceroute 198.51.100.100 ! shut or disconnect the Master uplink, then repeat verification |
|
VRRP failover distinction • Gateway/device failure: VRRP natively detects the loss because Master advertisements stop. • Upstream-only failure: the Master may keep sending advertisements on the LAN; use implementation-specific tracking/object features if the gateway role must follow Internet reachability. • VRRP packets are IP protocol 112 - there is no UDP or TCP port. |
5. GLBP - Gateway Load Balancing Protocol
Purpose and use case
GLBP is Cisco proprietary and adds first-hop load balancing to gateway redundancy. Unlike HSRP or VRRP, where one gateway normally forwards for a group, GLBP can use multiple routers at the same time. Hosts share one virtual IP address but may learn different virtual MAC addresses.
The AVG distributes virtual MAC addresses so multiple AVFs can forward traffic.
Key GLBP roles
|
Role |
Function |
|
AVG - Active Virtual Gateway |
Answers ARP requests for the virtual IP and assigns virtual MAC addresses to GLBP members. |
|
AVF - Active Virtual Forwarder |
Forwards traffic sent to its assigned GLBP virtual MAC address. |
|
Backup AVG |
Takes over AVG responsibilities if the AVG fails. |
|
Backup forwarder |
Can assume responsibility for another virtual MAC if an AVF fails. |
GLBP message transport and defaults
|
Item |
Default / Behavior |
|
IPv4 multicast |
224.0.0.102 |
|
UDP port |
3222 source and destination |
|
Hello / hold |
3 seconds / 10 seconds |
|
AVG priority |
100 |
|
AVG preemption |
Disabled by default |
|
Load-balancing method |
Round-robin by default |
|
Group range |
0-1023 |
|
Virtual MAC family |
0007.b400.xxyy; xx represents group in hex and yy the forwarder number |
How GLBP load balancing works
1. Hosts use one virtual IP, for example 192.168.10.1.
2. The AVG receives an ARP request for the virtual IP.
3. The AVG replies with a virtual MAC associated with one AVF.
4. A different host may receive a different virtual MAC and therefore send through another AVF.
5. All hosts still use the same default-gateway IP address.
GLBP load-balancing methods
|
Method |
Behavior |
Typical reason |
|
Round-robin |
Cycles ARP replies across available AVFs. |
General-purpose default; spreads hosts. |
|
Host-dependent |
A host is kept on the same AVF while the forwarder set is stable. |
Useful when session affinity matters, such as certain NAT designs. |
|
Weighted |
Distribution depends on configured gateway weighting. |
Use when gateways have different forwarding capacities. |
GLBP weighting and tracking
GLBP tracking commonly adjusts gateway weighting. If the weighting falls below a configured lower threshold, a device can lose its ability to act as an active virtual forwarder. When the weighting rises above the upper threshold, it can resume forwarding.
GLBP example
|
track 1 interface GigabitEthernet1/0/48 line-protocol ! interface Vlan10 ip address 192.168.10.2 255.255.255.0 glbp 10 ip 192.168.10.1 glbp 10 priority 110 glbp 10 preempt delay minimum 30 glbp 10 load-balancing round-robin glbp 10 weighting 110 lower 90 upper 105 glbp 10 weighting track 1 decrement 30 |
Second GLBP member
|
interface Vlan10 ip address 192.168.10.3 255.255.255.0 glbp 10 ip 192.168.10.1 glbp 10 priority 100 glbp 10 preempt delay minimum 30 glbp 10 load-balancing round-robin |
GLBP verification
Verification commands
|
show glbp brief show glbp show track 1 show ip arp 192.168.10.1 show mac address-table | include 0007.b400 |
GLBP Internet topology, load balancing, and full failover process
GLBP allows multiple AVFs to forward toward the same upstream Internet router; if one forwarder or its tracked uplink fails, another member can take over its virtual MAC.
1. Hosts configure one virtual IP, for example 192.168.30.254. The AVG controls the virtual gateway and answers ARP requests.
2. The AVG can return different virtual MAC addresses for different hosts. PC1 may receive the AVF1 MAC while PC2 receives the AVF2 MAC.
3. PC1 therefore forwards through GW1/AVF1 and PC2 through GW2/AVF2 at the same time. Both routers can send traffic toward upstream router R0 and the Internet.
4. If AVF1 fails, another GLBP member can assume AVF1 virtual-MAC responsibility so hosts that still cache that MAC continue forwarding.
5. If GW1 remains alive on the LAN but loses its upstream path, GLBP weighting/object tracking can reduce its weighting below the lower threshold and remove it from active forwarding.
6. If the AVG fails, the standby virtual gateway becomes the new AVG. Existing surviving AVFs can continue forwarding while the new AVG takes over ARP assignment duties.
7. AVG preemption is disabled by default; enable it only when the design needs the recovered higher-priority device to reclaim AVG. Forwarder behavior and preemption are separate from AVG election.
GLBP failure timers and host behavior
|
Concept |
Purpose |
|
Hello / hold |
Peers normally exchange GLBP hello messages every 3 seconds; a 10-second hold timer detects loss. |
|
Redirect timer |
Controls the period during which the AVG redirects new ARP replies away from a failed forwarder; commonly 600 seconds by default. |
|
Forwarder timeout |
Controls how long a failed forwarder virtual MAC is retained before it can be removed; commonly 14,400 seconds by default. |
|
Weighting thresholds |
A tracked failure can reduce weighting below the lower threshold so the device stops serving as an AVF; it can resume after reaching the upper threshold. |
GLBP tracking example for the Internet uplink
|
track 20 interface GigabitEthernet1/0/48 line-protocol ! interface Vlan30 glbp 10 ip 192.168.30.254 glbp 10 priority 110 glbp 10 preempt delay minimum 30 glbp 10 weighting 110 lower 90 upper 105 glbp 10 weighting track 20 decrement 30 glbp 10 load-balancing round-robin |
GLBP verification during failover
|
show glbp brief show glbp show track 20 show ip arp 192.168.30.254 show mac address-table | include 0007.b400 ! Clear client ARP and retest to observe new AVG ARP assignments |
|
What users see during GLBP failover • The configured default-gateway IP never changes. • Different clients may use different virtual MAC addresses during normal operation. • After an AVF failure, another forwarder can carry traffic for the failed AVF virtual MAC; new ARP replies are steered toward healthy forwarders. |
6. HSRP vs VRRP vs GLBP - Detailed Comparison
|
Feature |
HSRP |
VRRP |
GLBP |
|
Ownership |
Cisco proprietary |
Open standard |
Cisco proprietary |
|
Roles |
Active / Standby |
Master / Backup |
AVG + multiple AVFs |
|
Normal forwarding |
One Active |
One Master |
Multiple AVFs can forward |
|
IPv4 multicast |
v1 224.0.0.2; v2 224.0.0.102 |
224.0.0.18 |
224.0.0.102 |
|
Transport |
UDP 1985 |
IP protocol 112 |
UDP 3222 |
|
Default priority |
100 |
100; owner 255 |
100 for AVG |
|
Preemption |
Disabled by default |
Enabled by default |
AVG preempt disabled by default |
|
Default control timer |
Hello 3 / Hold 10 |
Advertisement 1 second |
Hello 3 / Hold 10 |
|
Virtual MAC |
Protocol/version specific |
0000.5e00.01XX IPv4 |
Up to four 0007.b400.xxyy |
|
Load balancing |
Use multiple groups/VLANs |
Use multiple groups/VLANs |
Built in through AVFs |
|
Best use case |
Cisco active/standby simplicity |
Multi-vendor interoperability |
Gateway redundancy plus first-hop load balancing |
HSRP or VRRP can still load-share by making different devices preferred for different VLANs.
7. Preemption, Tracking, Timers, and Failure Scenarios
Preemption - why it matters
Preemption determines what happens after the originally preferred device recovers. Without preemption, the device that took over during the outage can remain active/master. With preemption, a higher-priority device can reclaim the role. This makes the topology deterministic, but aggressive preemption can create unnecessary role changes during unstable recovery.
Preempt delay
Allows interfaces, routing adjacencies, and routes to become stable before taking the gateway role.
Reduces the chance that a recovering device becomes the gateway before it has usable upstream reachability.
Common in production even when the lab uses immediate preemption for demonstration.
Tracking - interface up does not always mean path healthy
A distribution switch can keep VLAN10 up while its upstream routed link is down. If FHRP only watches the SVI, the switch may remain the first-hop gateway and blackhole traffic. Tracking ties the gateway role to meaningful reachability.
Track an uplink line protocol.
Track a route in the routing table.
Track an IP SLA reachability object on platforms/designs that require end-to-end validation.
Choose a decrement large enough to make the peer preferred when the tracked condition fails.
Failure scenario comparison
|
Failure |
Without tracking |
With tracking |
|
Active gateway LAN SVI fails |
Peer detects FHRP loss and takes over. |
Same result; failover occurs. |
|
Active gateway upstream link fails but VLAN SVI stays up |
Active may keep answering the VIP and blackhole remote traffic. |
Priority/weight changes; healthy peer takes over forwarding. |
|
Preferred gateway reloads |
Peer takes role. On recovery, role behavior depends on preemption. |
Same, but preempt delay can wait for network convergence. |
|
Peer control packets blocked |
Possible split-brain / multiple active-master symptoms. |
Tracking does not replace control-plane reachability; fix multicast/ACL issue. |
8. Configuration and Verification Workflow
Recommended implementation sequence
1. Build and verify the VLAN, trunking, SVI, and Layer 3 reachability first.
2. Choose the virtual IP and FHRP group number.
3. Configure both physical gateway addresses and the same virtual IP.
4. Set priority so the intended device wins.
5. Decide whether preemption should be enabled and add a delay if needed.
6. Add tracking for important uplinks or reachability conditions.
7. Verify state, timers, virtual MAC, ARP resolution, and data forwarding.
8. Perform controlled failure tests and document expected state transitions.
Generic verification checklist
|
Check |
HSRP |
VRRP |
GLBP |
|
Protocol state |
show standby brief |
show vrrp brief |
show glbp brief |
|
Detailed group |
show standby |
show vrrp |
show glbp |
|
Tracking |
show track |
show track |
show track |
|
Virtual gateway ARP |
show ip arp <VIP> |
show ip arp <VIP> |
show ip arp <VIP> |
|
Virtual MAC location |
show mac address-table address <vMAC> |
show mac address-table address <vMAC> |
show mac address-table | include 0007.b400 |
|
Traffic test |
ping / traceroute |
ping / traceroute |
ping / traceroute |
9. FHRP Troubleshooting Workflow
Start from Layer 1/2 before blaming the FHRP protocol.
Verify both gateway interfaces/SVIs are up/up.
Verify the VLAN exists and is allowed on trunks.
Verify the two FHRP devices are in the same Layer 2 broadcast domain.
Verify physical IP addresses are unique and in the same subnet as the VIP.
Verify group number, virtual IP, FHRP version, authentication, and timers match where required.
Check whether multicast/control packets are filtered by an ACL, CoPP policy, or platform feature.
Check priority and preemption settings against the intended design.
Check tracked objects and actual priority/weight after a failure.
Verify the virtual MAC is learned on the expected switchport after failover.
Common symptoms
|
Symptom |
Likely causes / checks |
|
Both routers think they are Active/Master |
FHRP messages not reaching the peer; VLAN/trunk mismatch; multicast filtered; protocol version mismatch. |
|
Wrong device remains Active after recovery |
Preemption disabled; priority not high enough; preempt delay still running. |
|
Failover occurs but remote traffic still fails |
No upstream routing on new gateway; tracking design missing; return path issue. |
|
VIP cannot be pinged from clients |
VLAN/SVI down; wrong subnet; client ARP issue; FHRP not Active/Master; ACL. |
|
GLBP uses only one forwarder |
Load-balancing disabled/misconfigured; one AVF ineligible; weighting below threshold; host ARP cache still points to one vMAC. |
|
Frequent role changes |
Aggressive timers; unstable uplink; tracking object flaps; priority/preempt design too sensitive. |
Useful operational commands
Cisco IOS / IOS XE
|
show ip interface brief show interfaces trunk show vlan brief show spanning-tree vlan 10 show standby brief show vrrp brief show glbp brief show track show ip arp show mac address-table dynamic show logging |
|
Final takeaway • FHRP protects the host default gateway, not the entire network path by itself. • Priority chooses the preferred gateway, preemption controls role recovery, and tracking ties the gateway role to real path health. • HSRP is the common Cisco Active/Standby choice, VRRP is the standards-based option, and GLBP adds first-hop load balancing through multiple AVFs. |
Quick knowledge check
1. What problem does an FHRP solve?
Answer: It removes the single point of failure created by one physical default gateway.
2. What address should end hosts use as their default gateway in an FHRP design?
Answer: The FHRP virtual IP address.
3. Which HSRP role forwards traffic for the virtual gateway?
Answer: Active.
4. What is the default GLBP load-balancing method?
Answer: Round-robin.
5. Why use tracking?
Answer: To remove or reduce the preference of a gateway that has lost meaningful upstream reachability.
