<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFCC">
    <p>I have been using this setup for a long time, even using 5
      different classes with different routers , one with no internet
      access and one for unknown hosts for isolation.</p>
    <p>The only place to use the hardware address is in the subclass
      statement where you can add e.g. dns-name if needed. I put this
      into an include file.</p>
    <p>I have a few host statements for things that need a fixed
      address, referring to the DNS lookup of the name.<br>
    </p>
    <p>It was the easiest solution I could find. Recommended.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 07/12/2017 13:58, Sven Schumacher
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:cf346544-7152-4d43-a2e8-4849e1649dd7@tfd.uni-hannover.de">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Am 07.12.2017 um 13:48 schrieb Bill
        Shirley:<br>
      </div>
      <blockquote
cite="mid:83da8074-2011-0029-a285-0ce553f64ce1@c3po.polymerindustries.biz"
        type="cite">
        <meta http-equiv="Content-Type" content="text/html;
          charset=windows-1252">
        Class/subclass would better fit your needs:<br>
      </blockquote>
      Yes of course... but I didn't want to specify the mac-address
      twice.<br>
      More comfortable would be to add a option to  the already existing
      groups of hosts:<br>
      <br>
      group { # guests<br>
          option tfd-scope-identifier "gaeste";<br>
          host test1 {<br>
             hardware ethernet aa:bb:cc:dd:ee:ff;<br>
          }<br>
          host test2 {<br>
             hardware ethernet bb:cc:dd:ee:ff:aa;<br>
          }<br>
      }<br>
      <br>
      <br>
      <br>
      <blockquote
cite="mid:83da8074-2011-0029-a285-0ce553f64ce1@c3po.polymerindustries.biz"
        type="cite"> <font color="#993300"><tt>#      -------------</tt><tt><br>
          </tt><tt>class "gaeste" {    </tt><tt><br>
          </tt><tt>  match hardware;</tt><tt><br>
          </tt><tt>  option routers 10.69.0.251;    # can set the
            routers here or in "gaste" pool</tt><tt><br>
          </tt><tt>}</tt><tt><br>
          </tt><tt># MAC address is preceded by '1:' indicating ethernet</tt><tt><br>
          </tt><tt>subclass "gaeste"    1:aa:bb:cc:dd:ee:ff;    # test1</tt><tt><br>
          </tt><tt>#      -------------</tt><tt><br>
          </tt><tt><br>
          </tt><tt>#      -------------</tt><tt><br>
          </tt><tt>class "subnet2" {</tt><tt><br>
          </tt><tt>  match hardware;</tt><tt><br>
          </tt><tt>}</tt><tt><br>
          </tt><tt>subclass "subnet2"    1:bb:cc:dd:ee:ff:aa;    # test2</tt><tt><br>
          </tt><tt>subclass "subnet2"    1:cc:dd:ee:ff:aa:bb    { #
            test3 - can have additional settings</tt><tt><br>
          </tt></font></blockquote>
      this way I would have to add the MAC-address twice (one time for
      the subclass and one time for the host)<br>
      <br>
      <blockquote
cite="mid:83da8074-2011-0029-a285-0ce553f64ce1@c3po.polymerindustries.biz"
        type="cite"><font color="#993300"><tt> </tt><tt>#host test1 {</tt><tt><br>
          </tt><tt># hardware ethernet aa:bb:cc:dd:ee:ff;</tt><tt><br>
          </tt><tt># option tfd-scope-identifier "gaeste";</tt><tt><br>
          </tt><tt>#}</tt><tt><br>
          </tt><tt>#host test2 {</tt><tt><br>
          </tt><tt># hardware ethernet bb:cc:dd:ee:ff:aa;</tt><tt><br>
          </tt><tt>#}</tt><tt><br>
          </tt></font><br>
        Host declarations are global and should not be inside any<br>
        other structure except 'group'.  Pools should be inside subnet<br>
        declarations.<br>
      </blockquote>
      The pool-declarations are in a shared-network, but even changing
      this, so that the pool-declaration are in the corresponding
      subnet-declarations, doesn't help.<br>
      <blockquote
cite="mid:83da8074-2011-0029-a285-0ce553f64ce1@c3po.polymerindustries.biz"
        type="cite"> <br>
        There are other ways to do class matches:<br>
        <font color="#993300"><tt>class "10.mobile_device" {</tt><tt><br>
          </tt><tt>    match if (</tt><tt><br>
          </tt><tt>        option host-name ~~ "dhcpcd"</tt><tt><br>
          </tt><tt>        or option host-name ~~ "android"</tt><tt><br>
          </tt><tt>        or option vendor-class-identifier ~~
            "android"</tt><tt><br>
          </tt><tt>        or option host-name ~~ "samsung-sm"</tt><tt><br>
          </tt><tt>        or option host-name ~~ "iphone"</tt><tt><br>
          </tt><tt>        or option host-name ~~ "ipod"</tt><tt><br>
          </tt><tt>        or option host-name ~~ "ipad"</tt><tt><br>
          </tt><tt>        or option host-name ~~ "watch"</tt><tt><br>
          </tt><tt>    );</tt><tt><br>
          </tt></font></blockquote>
      It seems to me, that class matches doesn't work with
      config-options, only with options :(<br>
      I tried once to use "option host-name " instead of my
      "config-option tfd-scope-identifier" and then the class was
      assigned.<br>
      <br>
      Thanks so far<br>
      <br>
      Sven<br>
      <br>
      <p><br>
      </p>
      <pre class="moz-signature" cols="72">-- 
Sven Schumacher - Systemadministrator Tel: (0511)762-2753
Leibniz Universitaet Hannover
Institut für Turbomaschinen und Fluid-Dynamik       - TFD
Appelstraße 9 - 30167 Hannover
Institut für Kraftwerkstechnik und Wärmeübertragung - IKW
Callinstraße 36 - 30167 Hannover</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>