<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFCC" text="#000000">
    It looks like you want to say that one particular host can only be
    accepted if booted into windows but not when booted into linux?<br>
    <br>
    Allow statements do not fit into a host declaration AFAIK.<br>
    <br>
    You may consider having a class for windows and a class for linux,
    then deny unknown hosts and allow the relevant class in each pool
    (one pool for each class).<br>
    <br>
    Then you can use subclass statements to select who is what based on
    hardware.<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 16/10/2015 15:33, Patrick Trapp
      wrote:<br>
    </div>
    <blockquote
cite="mid:1D507D610594D14F86D40D77C17E9E6626401689@EXCHANGEDSB.ruralnex.com"
      type="cite">
      <pre wrap="">If you are specifying the fixed-address value based on the "hardware ethernet", why are you bothering with the class identifier. I would just specify that for a given hardware ethernet, assign a specific fixed address.

Is there some circumstance when you think a given MAC address will qualify for different classes?

________________________________________
From: <a class="moz-txt-link-abbreviated" href="mailto:dhcp-users-bounces@lists.isc.org">dhcp-users-bounces@lists.isc.org</a> [<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users-bounces@lists.isc.org">dhcp-users-bounces@lists.isc.org</a>] on behalf of Rafal [<a class="moz-txt-link-abbreviated" href="mailto:golem@mtm-info.pl">golem@mtm-info.pl</a>]
Sent: Friday, October 16, 2015 7:32 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
Subject: hardware ethernet and option vendor-class-identifier

Hello Dhcp-users,

I    want    to    make   my   dhcp   server   verify   hardware   and
vendor-class-identifier to send reply.

This is how I expected it :


(not working example)

##########
 subnet 192.168.30.0 netmask 255.255.255.192 {
 option routers 192.168.30.1;
                                            }

class "WINDOWS" {
match if substring(option vendor-class-identifier, 0, 8) = "MSFT";

}

class "LINUX" {
match if substring(option vendor-class-identifier, 0, 8) = "udhcp";

}

host windowspc {hardware ethernet 78:01:02:03:04:05; fixed-address 192.168.30.2; allow members of "WINDOWS";}
host linuxpc {hardware ethernet 44:11:02:03:04:05; fixed-address 192.168.30.3; allow members of "LINUX";}


#######
So  while  dhcp  server receive dhcp request, he checks hardware address and
then vendor class identifier. If both match then he send reply.

Allow  members  need  to  be defined inside pool however I need static
IP configuration based on dhcp.
My example doesn't work. Can anyone help me to make it working ?

Thanks in advance.


--
Best regards,
 Ozga Rafal                          <a class="moz-txt-link-freetext" href="mailto:golem@mtm-info.pl">mailto:golem@mtm-info.pl</a>

_______________________________________________
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>
_______________________________________________
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>