user-class

Uwe.Buchwitz at gavi.de Uwe.Buchwitz at gavi.de
Tue Jul 17 13:21:04 UTC 2007


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