My challenge is trying to find a conditional way to change the order of the default gateways used in "option routers" parameters. Perhaps on receiving a DHCPDISCOVER message.
So the first client requestiong a DHCP address will receive 10.1.1.1 10.1.1.2 as "option routers" and the next request will send 10.1.1.2 10.1.1.1 as "option routers".
Basically inversing the order of the default gateways.
I need this in order to achieve some load balancing and failover in the same time, using only DHCP server for this.
I am currently looking at "dhcp-eval" options which seems like being a set of options geard towards such customizations but it is difficult to understand where to start.
Does anyone had to do something similar and if yes, could you share the code/setup that was used for scenario?
Thank you!