<div dir='auto'><div>hi Richard</div><div dir="auto"><br></div><div dir="auto">you've pretty much got the right idea. one file with the failover definition for each server, as that's different, and a second file with all the common configuration.</div><div dir="auto"><br></div><div dir="auto">either can be the main dhcpd.conf and include the other file.</div><div dir="auto"><br></div><div dir="auto">then an update means modify the file on one server, restart, test, then copy the file to the second server and restart. you could create a script to do the copy and restart perhaps.</div><div dir="auto"><br></div><div dir="auto">static hosts get the same IP address and options every time, so it doesn't matter which server response they accept. if you only have static hosts then you don't even need the failover seeing as that's for dynamic pools.</div><div dir="auto"><br></div><div dir="auto">regards</div><div dir="auto">Glenn <br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On 15 Jul 2022 1:22 am, "Richard L. Hamilton" <rlhamil@smart.net> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">I have failover set up, and while I have a dynamic range, all known devices have static reservations configured.</p>
<p dir="ltr">Except for what has to be different between primary and secondary, the configuration files are the same; they both have the same host definitions.</p>
<p dir="ltr">Separating the configuration file into two parts: the main part with the primary or secondary information and pool definitions, which then includes on both an identical copy of  the file with the static host information, seems like it would simplify matters; you’d only be editing one file and copying it (and restarting both DHCP servers, presumably). Or you could script something really kewl with omshell to do both maybe, but if you make a mistake, you mess up both at the same time. At least if you’re editing a file, you can make sure the primary is behaving after restarting it before copying the edited file over to the secondary and restarting it too.</p>
<p dir="ltr">Putting the included file on a share that both can access would NOT be as good as it sounds, since that’s one more thing that has to be up in the right order, and could break.</p>
<p dir="ltr">> On Jul 14, 2022, at 10:51 AM, Ryan Shea <ryan@muppethouse.com> wrote:<br>
> <br>
> Failover of a pool seems straightforward enough - however this is insufficient in the case where static reservations are present in host definitions. I am looking for some solution by which I have a redundant pair of dhcpd services which can not only fail over leases from a pool, but also keep those hosts with static reservations working.<br>
> <br>
> Is this as simple as synchronizing the host config definitions and running both services - without any particular concern about which server replies? Manually managing host configs for reservations in two places seems sub-optimal.<br>
> -- <br>
> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.<br>
> <br>
> dhcp-users mailing list<br>
> dhcp-users@lists.isc.org<br>
> https://lists.isc.org/mailman/listinfo/dhcp-users</p>
<p dir="ltr">-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.</p>
<p dir="ltr">dhcp-users mailing list<br>
dhcp-users@lists.isc.org<br>
https://lists.isc.org/mailman/listinfo/dhcp-users<br>
</p>
</blockquote></div><br></div></div></div>