<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFCC" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 10/02/13 20:49, Daniel Hoffmann
      wrote:<br>
    </div>
    <blockquote cite="mid:5117F9C5.2050600@kabelsat-bergen.de"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <big><font face="Aparajita"><small>Greetings,<br>
            <br>
            I have several subnets and multiple gateways relaying dhcp
            request. I'ld like to assign dynamic leases, depending they
            are member of a class or not. If Not, devices shall get an
            offer from a private subnet.<br>
            But I do not know how to seperate known from unknown hosts
            in a class declartion.<br>
            <br>
            class "giaddr_1_known" { match if
            (binary-to-ascii(10,8,".",packet(24,4)) =
            "<giaadr_1>") }<br>
            <br>
            subclass "giaddr_1_known" 1:aa:bb.cc:dd:ee:ff;<br>
            <br>
            <br>
            ## unknown hosts from giaddr_1 should get leases from here<br>
            subnet x.x.x.0 netmask 255.255.255.0 {<br>
                pool {<br>
                    range 1.1.1.2 1.1.1.254;<br>
                    allow members of "giaddr_1_unknown";<br>
                }<br>
            }<br>
            <br>
          </small></font></big></blockquote>
    <font face="Aparajita">What if you deny all classes so only the
      unknown(=not member of any class) may get an address from there?
      That of course requires that all known hosts are a member of some
      class.</font><br>
    <blockquote cite="mid:5117F9C5.2050600@kabelsat-bergen.de"
      type="cite"><big><font face="Aparajita"><small> <br>
            ## hosts with subclass declaration should get leases from
            here<br>
            subnet yyy.0 netmask 255.255.255.0 {<br>
                pool {<br>
                    range 194.20.12.2 194.20.12.254;<br>
                    allow members of "giaddr_1_known;<br>
                }<br>
            }<br>
            <br>
            Perhaps one of you could help me.<br>
            <br>
            Best regards,<br>
            Daniel<br>
          </small></font></big> <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>