<div dir="ltr">Are you looking for something like this?<br><br>subnet 172.21.27.0 netmask 255.255.255.0 {<br>  option subnet-mask 255.255.255.0;<br>  option broadcast-address 172.21.27.255;<br>  option routers 172.21.27.1;<br>
  ddns-domainname "<a href="http://example.com">example.com</a>.";<br>  option domain-search "<a href="http://example.com">example.com</a>";<br>  pool {<br>    failover peer "dhcp-failover";<br>
    range 172.21.27.5 172.21.27.254;<br>  }<br>}<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 9, 2013 at 8:08 PM, Gregory Sloop <span dir="ltr"><<a href="mailto:gregs@sloop.net" target="_blank">gregs@sloop.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So, I've done a fair bit of reading and searching - and this general<br>
template is what I thought would work, but it doesn't.<br>
<br>
Let me post the dhcp.conf file and then discuss what's wrong and ask<br>
for pointers.<br>
<br>
---<br>
authoritative;<br>
#ddns-update-style interim;<br>
ignore client-updates;<br>
#option host-name = config-option server.ddns-hostname;<br>
<br>
#include "/etc/rndc.key";<br>
<br>
option domain-name              "somedom.local";<br>
option domain-name-servers      10.1.1.190,10.1.2.1,10.1.1.17;<br>
option time-offset              -18000; # Pacific Standard Time<br>
option ntp-servers              10.1.1.14<br>
one-lease-per-client off;<br>
<br>
#4 hour lease<br>
default-lease-time 14400;<br>
max-lease-time 14400;<br>
option ip-forwarding off;<br>
<br>
failover peer "dhcp-failover" {<br>
  primary; # declare this to be the primary server<br>
  # Address if THIS dhcp server, or what address to listen ON<br>
  address 10.1.1.1;<br>
  port 647;<br>
  # Address of the DHCP fail-over peer.<br>
  peer address 10.1.1.2;<br>
  peer port 647;<br>
  max-response-delay 60;<br>
  max-unacked-updates 10;<br>
  #load balance max seconds 3;<br>
  mclt 3600;<br>
  split 0;<br>
}<br>
<br>
    subnet 10.1.1.0 netmask 255.255.255.0 {<br>
        range 10.1.1.1 10.1.1.254;<br>
        option routers                  10.1.1.1;<br>
        option subnet-mask              255.255.255.0;<br>
        failover peer "dhcp-failover";<br>
    }<br>
<br>
    subnet 10.1.2.0 netmask 255.255.255.0 {<br>
        range 10.1.2.1 10.1.2.254;<br>
        option routers                  10.1.2.1;<br>
        option subnet-mask              255.255.255.0;<br>
        failover peer "dhcp-failover";<br>
    }<br>
<br>
    subnet 10.1.3.0 netmask 255.255.255.0 {<br>
        range 10.1.3.1 10.1.3.254;<br>
        option routers                  10.1.3.1;<br>
        option subnet-mask              255.255.255.0;<br>
        failover peer "dhcp-failover";<br>
    }<br>
<br>
---<br>
Now, I've disabled DDNS updates for simplicity sake. Once I get the<br>
multi-subnet/VLAN setup and failover working I'll add that back.<br>
<br>
Perhaps that impacts things somehow, so if you'll keep that in mind,<br>
I'd appreciate it.<br>
<br>
So, when I try this config I get an error saying that a failover needs<br>
to be inside a shared network block.<br>
<br>
But if I do that, I've been told [read] that the DHCP server won't<br>
know how to assign the different subnets. [This would apply to a<br>
network where I wanted to share all the 10.1.1.1-10.1.3.254 as a<br>
single pool/block and assign any station any IP in the whole block.]<br>
<br>
But I have a L3 switch and I want these assigned to each VLAN.<br>
<br>
---<br>
So, I setup the conf file without a shared-network and it works fine<br>
with the L3 DHCP helper/proxy. Clients on VLAN1 get 10.1.1.0 blocks<br>
and VLAN2 get 10.1.2.0 blocks etc.<br>
<br>
So, with the "failover" block commented out, it works charmingly! Very<br>
cool!<br>
<br>
---<br>
But I *also* want to use failover.<br>
<br>
And when I put in a fail-over outside a shared-network, it complains<br>
that it must be inside a shared network.<br>
<br>
So, how to I use fail-over AND maintain the subnet grouping above?<br>
<br>
---<br>
I'll keep reading, but I've tinkered with this quite a bit and for the<br>
life of me, I can't see how one would go about it.<br>
<br>
-Greg<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
--<br>
Gregory Sloop, Principal: Sloop Network & Computer Consulting<br>
<a href="tel:503.251.0452%20x121" value="+15032510452">503.251.0452 x121</a> Voice | <a href="tel:503.251.0452" value="+15032510452">503.251.0452</a> Fax<br>
<a href="http://www.sloop.net" target="_blank">www.sloop.net</a><br>
mailto:<a href="mailto:gregs@sloop.net">gregs@sloop.net</a><br>
<br>
_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</font></span></blockquote></div><br></div>