HSRP states, priority and preempt
Sign in to read this lesson
An HSRP router goes through several states before it ends up active or standby: Init, Listen, Speak, Standby, Active. You can see them with debug standby events. The active router is chosen by the highest priority (default 100); if the priorities are equal, the highest IP address wins. You change the priority with standby 1 priority 150. But once HSRP has chosen an active router, it stays active until it goes down; to make the higher-priority router active immediately you need standby 1 preempt. show standby brief gives a quick check.
What you will learn
- HSRP states: Init → Listen (knows the virtual IP, listens for hellos) → Speak (sends hellos, joins the election) → Standby → Active. To see them:
debug standby events. - The active router forwards packets and sends hellos; the standby router keeps sending hellos and takes over if the active fails.
- The election: highest priority (default 100); if equal, the highest IP address wins.
standby 1 priority 150changes the priority, but preemption is disabled by default: the elected active router stays active until it goes down.standby 1 preempt: the router with the highest priority becomes active immediately. Quick check:show standby brief(the P column shows preempt).
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.