user-class

Frank Bulk frnkblk at iname.com
Tue Jul 17 14:14:07 UTC 2007


Uwe:

Would this help you?

       option dhcp-parameter-request-list uint16;

         This  option,  when  sent  by the client, specifies which options
the
         client wishes the server to  return.    Normally,  in  the  ISC
DHCP
         client, this is done using the request statement.   If this option
is
         not specified by the client, the DHCP  server  will  normally
return
         every  option  that  is  valid in scope and that fits into the
reply.
         When this option is specified on the server, the server  returns
the
         specified  options.    This  can  be  used  to force a client to
take
         options that it hasn't requested, and it can also be used  to
tailor
         the response of the DHCP server for clients that may need a more
lim-
         ited set of options than those the server would normally return.

Regards,

Frank 

-----Original Message-----
From: dhcp-hackers-bounce at isc.org [mailto:dhcp-hackers-bounce at isc.org] On
Behalf Of Uwe.Buchwitz at gavi.de
Sent: Tuesday, July 17, 2007 8:21 AM
To: dhcp-hackers at isc.org
Subject: user-class

we are trying to send different options to clients by using differnt
user-class Values:
if option user-class = "Test1" {
                option nds-tree-name "TREE1";
                option slp-directory-agent-test true 10.10.10.10
10.10.10.11;
                option slp-novell-79 3 MYWORLD;
                option domain-name-servers 10.10.10.13, 10.10.10.14;
                option nds-servers 10.10.10.15, 10.10.10.16;
}

if option user-class = "Test2" {
                option nds-tree-name "TREE2";
                option domain-name-servers 10.10.10.17, 10.10.10.18;
                option slp-novell-79 3 TREE2;
                option nds-servers 10.10.10.20, 10.10.10.21, 10.10.10.22;
}
else {
                option nds-tree-name "TREE3";
                option domain-name-servers 10.10.10.23, 10.10.10.24;
                option slp-novell-78 36868 10.10.10.25 3 TREE3;
                option slp-novell-79 3 TREE3;
                option nds-servers 10.10.10.26, 10.10.10.27, 10.10.10.28;
}

I found, that my Clients got the right domain-name servers, but for the
Novell Options they always got the options under else.

tracing the IP Packets I found out, that the Client (WIN XP SP2) first
sending a dhcprequest, without the Novell options but the
domain-name-server option in the parameter request list. Also its sendin
the user-class value. The server only replies with the requested options.
Since it got the user-class repying with the correct value for
domain-name-server.

Then the client sending a dhcpinform without the user-class value, but a
different parameter request list including the Novell options. Since it
did not send the user-class, sending the Novell options under the else
statment.

Is there any way to convince the Server to aslways send all configured
options, to avoit the client sening an extra dhcpinform?

I even tried it this way:


        set user-string = option user-class;

if user-string = "TEST1" {
      option .......
}
if user-string = "TEST2" {
      option .......
}
if user-string = "TEST2" {
      option .......
}

it did not work. Why??

Uwe





More information about the dhcp-hackers mailing list