02-11-2008 01:03 PM - edited 03-03-2019 08:39 PM
We have a large enterprise network and our routers and switches are running HRSP. We were told the preempt command should be added to the interface of both the primary and the standby router. We have checked our configuration and notice that the preempt command is only on the primary routers. My question is if we configuer the priorty command to set a primary router and a standby router, does the priorty statement have any control on which router will be the primary after a failuer and recovery? if not when the preempt command is only on the router with the higest priorty will the standby router reinstate control to the primary after a failuer and recovery of the router with the higest priorty?
I am asking this question now so if configuration changes are needed on our network I would like to do them now before any outages. Thank you all for your responses.
02-11-2008 01:30 PM
You only need it on the Primary. The Primary is the router usually taking over another current HSRP router. The Secondary only takes over when there isn't another HSRP router in the group, no preempt is needed there.
However, it doesn't hurt having it on both routers and actually is needed when you have 3 HSRP routers in a HSRP group.
HTH,
__
Edison.
02-11-2008 01:30 PM
Hi
Preempt allows the router with it configured to take over the active role if it has a higher priority than the other router.
So do you need it on both routers. Not necessarily because you may only want the active to be able to preempt. Indeed in many scenarios you only really want the router with the higher priority to preempt.
Where preemption is needed on both routers is if you are decreasing the priority based on an external event eg. you could be tracking an interface on the active router. The active router has a priority of 120 and the standby 110. The tracked interface goes down and the active router decrements it's priority by 20.
But if the standby router does not have preemption it will not take over.
HTH
Jon
02-11-2008 01:51 PM
Thank you both for your responses, look like I may have to add the preempt to both the primary and the standby routers. It's better to be safe than sorry or out of a job :-)
DW
02-12-2008 06:49 AM
Jon
I can appreciate your comment on this. I was always thinking why 'preempt' is required on the secondary router. But, when I added it the tracking and hence the hsrp started working fine.
Cheers
Arav
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide