Home Blog Certs Knowledge Base About

Cisco FHRP โ€” HSRP, VRRP, GLBP

Cisco IOS cheat sheet for First Hop Redundancy Protocols: HSRP (Cisco-proprietary), VRRP (open standard), and GLBP (Cisco-proprietary with load balancing). Supported on both routers and L3 switches.

Protocol Comparison

FeatureHSRPVRRPGLBP
StandardCisco proprietaryOpen (RFC 5798)Cisco proprietary
Preempt defaultOffOnOn
Load balancingNoNoYes (AVF)
Hello / Hold timers3 s / 10 s1 s / 3 s3 s / 10 s
Virtual IP = physical IPNo (must differ)Yes (allowed)No
Multicast address224.0.0.2 (v1) ยท 224.0.0.102 (v2)224.0.0.18224.0.0.102
AuthenticationMD5 supportedRemoved from RFC; supported on Cisco HWMD5 supported
Interface trackingYesYesYes (via weighting)

HSRP โ€” Hot Standby Router Protocol

HSRP โ€” Router 1 (Active)
CommandDescription
int fa0/1Interface facing the LAN
ip address 192.168.1.2 255.255.255.0Physical IP of this router
standby 1 ip 192.168.1.1Virtual IP (same on both routers) โ€” default gateway for hosts
standby 1 priority 110Set priority (default 100; higher = preferred active)
standby 1 preemptTake over active role when priority is higher
standby 1 preempt delay minimum 300Wait 300 s before preempting (let routing protocols converge)
standby 1 authentication md5 key-string MyPasswordMD5 authentication (optional)
standby 1 timers 200 750Hello interval / hold interval in seconds (optional tuning)
HSRP โ€” Router 2 (Standby) with Interface Tracking
CommandDescription
ip address 192.168.1.3 255.255.255.0Physical IP of standby router
standby 1 ip 192.168.1.1Same virtual IP as router 1
standby 1 preemptEnable preemption
track 1 interface fa0/1 line-protocolCreate tracking object for interface fa0/1
standby 1 track 1 decrement 20Decrease priority by 20 if track object 1 fails
standby 1 track 1 fa0/1 20HSRP shorthand: track interface directly without separate track object

VRRP โ€” Virtual Router Redundancy Protocol

Same commands as HSRP but replace standby with vrrp. Preemption is on by default in VRRP.

VRRP Setup
CommandDescription
vrrp 1 ip 192.168.1.1Enable VRRP group 1 with virtual IP

Priority, preempt, authentication, and timer commands follow the same pattern as HSRP but use vrrp keyword.


GLBP โ€” Gateway Load Balancing Protocol

GLBP elects one AVG (Active Virtual Gateway) and multiple AVF (Active Virtual Forwarder). Each AVF serves a subset of hosts โ†’ actual load balancing.

GLBP Configuration
CommandDescription
glbp 1 ip 192.168.1.1Enable GLBP group 1 with virtual IP
glbp 1 priority 110Set AVG priority (higher = preferred AVG)
glbp 1 preemptEnable preemption for AVG
glbp 1 weighting 130Set AVF weight (higher = more traffic forwarded)
glbp 1 weighting 130 lower 20 upper 50Weight with thresholds: stop forwarding below 20, resume above 50
track 1 interface fa0/1 line-protocolTrack uplink interface
glbp 1 weighting track 1 decrement 50Decrease weight by 50 if fa0/1 fails
glbp 1 load-balancing round-robinLoad-balancing method: round-robin, host-dependent, or weighted

Diagnostics

show commands
CommandDescription
show standbyDetailed HSRP status (use `vrrp` or `glbp` for other protocols)
show standby briefCompact FHRP status table

Cisco IOS Command Reference | FHRP