04-06-2020 05:37 PM
Hi all,
IN HSRP Priority, the range is from 1 to 255, where 1 denotes the lowest priority and 255 denotes the highest priority. The default priority value is 100. The router in the HSRP group with the highest priority value becomes the active router. My query is why the default priority is set to 100 if the range starts from 1 to 255. Logically, either this range should start from 101 or the default must be set at 1. Since under such default seetings, the range of 1 to 99 does not make any sense.
I am sure there must be some intentional reason behind it. Please share.
Thanks in advance
Shailender Amar
04-06-2020 08:57 PM
The logic could be that if a priority is set 1 then you can't lower it by track command for example by monitoring uplink interface. By setting it to 100 you more choices to decrease if you have for example 100 routers doing HSRP for one segment(highly unlikely scenario though).
Maybe other members know more detail and history it but that's my view.
04-06-2020 11:52 PM
Hello @amarshailender ,
as noted by @Abzal the main reason to have a default value of 100 instead of 1 is to leave to the HSRP routers the capability to use the tracking feature by reducing the HSRP priority if one of the WAN links fail for example by default the HSRP priority is reduced to 90 giving to another router configured for pre-emption a chance to take over and become the new active HSRP router for the group.
I have had bad experience with setting priority to max value 255 because if the device for any reasons becomes a black hole for traffic to the internet there is no easy way to override it.
What I usually do is to have a difference of 5 in priority between the primary router and secondary router so that in normal conditions or with the same number of faults the primary is still the active router and the secondary take over when it has no or less faults then the other router.
Again this only one of the possible design choices. Other people prefer to have greter differences like 50 and then changes the amount of priority decrement for each tracked object.
Hope to help
Giuseppe
04-07-2020 11:17 AM
04-08-2020 04:34 AM
Hi,
The reason for not having a default value of the highest or lowest, and having more of a middle value like 100, is, most probably, so that you have enough room to go up/down from the default value (assuming you have multiple routers in a HSRP group, cause there can be more than 2 routers; you have routers, for example, with priority of 100, 90,80, 70,60).
As for why the exact number of 100 and not 105, there could be some sort of logic behind the number, but for sure only people involved in the development would know. Within the same lines, why do we have an AD of 170 for EIGRP External, and not 180? You see where i'm going, sometimes numbers are just numbers.
Regards,
Cristian Matei.
Regards,
Cristian Matei.
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