<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFCC" text="#000000">
    Just for the record:<br>
    <br>
    ALL host statements are outside ANY subnet declaration? If they are
    not, inheritance will come from that subnet as well, overriding the
    options in the subnet where the address eventually comes from.<br>
    <br>
    On classes:<br>
    <br>
    I have a setup with two subnets and 2 different gateways in on of
    the subnets and none in the other.<br>
    Unknown hosts get an address in the subnet without gateway.<br>
    ~~~~~~~~~~~~~~~~~~~~<br>
    # class definitions<br>
    class "gateway-1" {<br>
             match hardware;<br>
           }<br>
    <br>
    <br>
    class "gateway-2" {<br>
             match hardware;<br>
           }<br>
    <br>
    <br>
    <br>
    # Subnet Declarations<br>
    shared-network hjemme{<br>
        authoritative;<br>
        subnet 192.168.16.0 netmask 255.255.255.0{<br>
            option domain-name        "s-carlsen.dk";<br>
            option domain-name-servers    192.168.16.32;<br>
            option subnet-mask        255.255.255.0;<br>
            option ntp-servers        192.168.16.32;<br>
            pool{<br>
                option routers            192.168.16.1;<br>
                allow members of "gateway-1";<br>
                range 192.168.16.96    192.168.16.127;<br>
            }<br>
            pool{<br>
                option routers            192.168.16.2;<br>
                allow members of "gateway-2";<br>
                range 192.168.16.128   192.168.16.169;<br>
            }<br>
        }<br>
        subnet 192.168.61.0  netmask 255.255.255.0{<br>
            max-lease-time 300;<br>
            default-lease-time 150;<br>
            pool{<br>
                allow unknown-clients;<br>
                deny members of "gateway-1";<br>
                deny members of "gateway-2";<br>
                range 192.168.61.100   192.168.61.150;<br>
            }<br>
        }<br>
    }<br>
    <br>
    <br>
    subclass "gateway-1" 1:00:04:20:17:fd:6d;        # host Sq-rcvr<br>
    subclass "gateway-2" 1:00:04:20:1b:d1:1c {always-broadcast
    on;ddns-hostname ds-209;}        # host ds-209<br>
    subclass "gateway-1" 1:00:04:20:28:ee:44;        # host Sq-rdo<br>
    ~~~~~~~~~~~~~~~~~~~~<br>
    <br>
    I keep all subclass definitions in an included file for ease of use.
    The 1: in front of the MAC indicates ethernet.<br>
    <br>
    Since it looks like you have the MAC-address for all of your hosts,
    this might be a way to do it.<br>
    <br>
    <div class="moz-cite-prefix">On 05/12/13 15.39, Brian J. Murrell
      wrote:<br>
    </div>
    <blockquote cite="mid:1386254346.21298.71.camel@pc.interlinx.bc.ca"
      type="cite">
      <pre wrap="">On Thu, 2013-12-05 at 15:18 +0100, Sten Carlsen wrote: 
</pre>
      <blockquote type="cite">
        <pre wrap="">Suggestions:

I see nothing in the host declaration that tells it which subnet to get
the IP from?
</pre>
      </blockquote>
      <pre wrap="">
Only the second subnet is available for dynamic address assignment.  The
first subnet has no "range" statement in it, so it's only available for
fixed address assignment.

But my point wasn't that the address was coming from the wrong subnet
but that the address is coming from the right subnet but the _options_
are coming from the wrong subnet.

</pre>
      <blockquote type="cite">
        <pre wrap="">allow / deny may be your friend.
</pre>
      </blockquote>
      <pre wrap="">
Indeed.  But I have not found anything I could reasonably match one set
of hosts on vs. the other.  Ideally I would like to match on say, "mgmt"
being in host declation's name (but it's position can be variable) but I
don't think there is any reasonable way of doing that.  I can't use mac
address/vendor to match since both the fixed-address and dynamic host
mac addresses are from the same vendor.  I'd even settle for being able
to class hosts based on whether they have fixed addresses assigned or
not but I have not found a match for that either.

</pre>
      <blockquote type="cite">
        <pre wrap="">I would likely use class/subclass here with suitable allow/deny.
</pre>
      </blockquote>
      <pre wrap="">
Indeed, but what to class/subclass on?

Cheers,
b.

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Best regards

Sten Carlsen

No improvements come from shouting:

       "MALE BOVINE MANURE!!!" 
</pre>
  </body>
</html>