Antwort: Re: user-class

Uwe.Buchwitz at gavi.de Uwe.Buchwitz at gavi.de
Wed Jul 18 08:28:45 UTC 2007


Matt: 
I tried the following config:

subnet 10.10.10.0 {
 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;
                 append dhcp-parameter-request-list 85,86,78,79;
 }

 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;
                 append dhcp-parameter-request-list 85,86,78,79;
 }
 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;
 }
pool {
        range 10.10.10.50 10.10.10.100;
        deny dynamic bootp clients;
        option routers 10.10.10.250;
        }
}

Now the Client ( XP )  dhcprequest sending the user-class Test1 receives 
the options defined in  the  dhcp-parameter-request-list even it did not 
ask for it, but with the values from the else clause. Even though the else 
Claus has no "append dhcp-parameter-request-list". 
Why does it honor the dhcp-parameter-request-list which is only configured 
in the if clauses, but sending the values from the else clause??

Mit freundlichen Grüßen 

Uwe Buchwitz 
EN2 - Netzdienste und Netzsicherheit 
GaVI Gesellschaft für angewandte Versicherungs-Informatik mbH 
------------------------------------------------------------------------------------------------
Löwentorstaße 65 
70376 Stuttgart 
Telefon: +49 (0)711 898 2117 
Telefax: +49 (0)711 898 402117 
Uwe.Buchwitz at gavi.de 

Sitz der Gesellschaft:
Seckenheimer Straße 150
68165 Mannheim
Registergericht Mannheim HRB 9242
Geschäftsführung: Karl Manghofer (Sprecher), Dr. Bernd Angermann, Thomas 
Büttner 



Matt Pascoe <hornet136 at gmail.com> 
Gesendet von: dhcp-hackers-bounce at isc.org
17.07.2007 16:25
Bitte antworten an
dhcp-hackers at isc.org


An
dhcp-hackers at isc.org
Kopie

Thema
Re: user-class






One thing you could try is the following statement:
append dhcp-parameter-request-list 1,3,6,12,15,66,208;

It will add the specified dhcp options to the response that the server 
gives
to the client.  This allows you to send things to the client even if the
client did not ask for it.  Obviously the client has to be in a position 
to
do something with the information it is sent from the server however.

On 7/17/07, Uwe.Buchwitz at gavi.de <Uwe.Buchwitz at gavi.de> wrote:
>
> 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