HSRP Preemption

This topic is to discuss the following lesson:

Is there any scenario where the backup switch / router need to use preemption?

Hello Daniel

Yes, there are scenarios where the standby switch needs to be configured with preemption.

The most common case is when you use object tracking. Suppose R1 has priority 110, R2 has priority 105, and R1 tracks an interface with a decrement of 10. When the tracked interface goes down, R1’s priority drops to 100 but stays up and keeps sending Hellos. R2 now has the higher priority, but it will only take over if it has preemption configured.

Preemption is also needed when roles have reversed. If R1 (priority 150) fails, R2 becomes Active. When R1 comes back, R1 needs preempt to retake the Active role. Once R1 is back, R2 is the backup again, and R2 should also have preempt so it can take over if R1 fails a second time. For this reason, we recommend configuring preempt on both routers.

Another case is if you want to make changes to the priorities. If you raise the standby router’s priority above the active router’s, nothing changes. Without preempt on the standby router, it will not take over from a live active router.

So if you want a device to take over immediately as soon as its priority is the highest in the group, you should configure preempt on all of your HSRP devices, whether they are currently active or standby. Make sense?

I hope this has been helpful!

Laz