conditional sentences

Glenn Satchell Glenn.Satchell at uniq.com.au
Mon Sep 18 13:59:40 UTC 2006


>X-Original-To: dhcp-users at webster.isc.org
>X-Greylist: delayed 424 seconds by postgrey-1.24 at post.isc.org; Sun, 17 Sep 
2006 14:29:59 UTC
>DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; 
h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:
content-transfer-encoding; 
b=bc8WT1dnHtWJYrdRUB4nvnfVyYHkPcuVc1RxpUnWz9zcG2+VQi16XrkU9eWqFBHejXRb/WMmaMVFaI
OGJpRRT5lK7xJoTNAZYfsKTZG4LV/2S2m7/a9oClIKZvfgx43Eb2u5c6KHH1i0G8V+rl85HwGdQRXIs0
SSE6Ni+vsSqwk=
>Date: Sun, 17 Sep 2006 16:22:52 +0200
>From: muzzol <muzzol at gmail.com>
>To: dhcp-users at isc.org
>Subject: conditional sentences
>X-archive-position: 1759
>X-ecartis-version: Ecartis v1.0.0
>X-original-sender: muzzol at gmail.com
>List-software: Ecartis version 1.0.0
>X-List-ID: <dhcp-users.isc.org>
>X-list: dhcp-users
>
>hi!
>
>i want to create a subnet only for windows users and another for linux.
>
>how i can identify operating system?
>
>is dhcp-eval the right direction?
>
>regards,
>
>muzzol
>
This is from the dhcp-options manual page.

     option vendor-class-identifier string;

       This option is used by some DHCP clients to  identify  the
       vendor  type  and  possibly  the  configuration  of a DHCP
       client.  The information is a string of bytes  whose  con-
       tents  are specific to the vendor and are not specified in
       a standard.   To see what vendor class identifier  clients
       are  sending,  you  can  write  the following in your DHCP
       server configuration file:

       set vendor-string = option vendor-class-identifier;

       This will result in all entries in the DHCP  server  lease
       database   file   for   clients  that  sent  vendor-class-
       identifier options having a set statement that looks some-
       thing like this:

       set vendor-string = "SUNW.Ultra-5_10";

and you can use it like this. "MSFT 5.0" is returned by windows 2000
and XP.

class "windows" {
  match if option vendor-class-identifier = "MSFT 5.0";
}

You could do the same thing for linux, but there doesn't seem to be a
default value set, although you could set it on each client.

In appropriate pools either in the same or different subnets configure
an allow or deny for the particular classes.

  pool { # windows clients only
    range ...
    allow members of "windows";
  }
  pool { # everything except windows clients
    range ...
    deny members of "windows";
  }

regards,
-glenn
--
Glenn Satchell       mailto:glenn.satchell at uniq.com.au  |  Heard about
Uniq Advances Pty Ltd           http://www.uniq.com.au  |  the new Unix
PO Box 70 Paddington NSW Australia 2021                 |  sports car?
tel:0409-458-580   tel:02-9380-6360   fax:02-9380-6416  |  The  rwx



More information about the dhcp-users mailing list