<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <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>
  </body>
</html>