What does 'add "classname"' really do?

Glenn Satchell Glenn.Satchell at uniq.com.au
Wed Mar 18 13:08:50 UTC 2009


Hi Dario

The leading 1 is the hardware type. 1 is for ethernet, others are token
ring (6), fddi (8), and possibly others. These days it's all pretty
much ethernet.

This is taken from the dhcp-eval manual page:

     hardware

       <snip>
       Hardware  types  include ethernet (1), token-ring
       (6), and fddi (8).   Hardware types are specified  by  the
       IETF,  and details on how the type numbers are defined can
       be found in RFC2131 (in the ISC DHCP distribution, this is
       included in the doc/ subdirectory).

No problem - these are all good questions!

regards,
-glenn

>From: "Dario Aguilar" <daguilar at arnet.net.ar>
>To: "'Users of ISC DHCP'" <dhcp-users at lists.isc.org>
>Subject: RE: What does 'add "classname"' really do?
>Date: Wed, 18 Mar 2009 09:45:46 -0300
>
>Hi, I have a doubt.. maybe it´s a stupid question but why you need to add
>"1:" before the mac address when it is defined as a subclass? Some similar
>thing happends to me with circuit-ID definition that I need to remove the
>first 2 octects to make it match well.
>
>Regards,
>
>Dario Aguilar.
>
>-----Mensaje original-----
>De: dhcp-users-bounces at lists.isc.org
>[mailto:dhcp-users-bounces at lists.isc.org] En nombre de Goesta Smekal
>Enviado el: Martes, 17 de Marzo de 2009 05:31 p.m.
>Para: Users of ISC DHCP
>Asunto: Re: What does 'add "classname"' really do?
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Glenn Satchell schrieb:
>> Hi Goesta
>> 
>> You can simplify this by getting rid of the host statement all
>> together, the 'allow members of' statement specifically excludes all
>> requests that are not members of that class including known or unknown
>> hosts, eg:
>> 
>> class "mammals" {
>>   match hardware;
>> }
>> subclass "mammals" 1:00:50:56:00:00:01;
>[...]
>
>Well, this seems to be exactly what i wanted, except for one thing: I
>need to supply the hostname to the client. Client OS is set up
>automatically by FAI, which uses DHCP info to determine the hostname of
>the client, which subsequently decides about software and config installed.
>
>So my Problem is only partially solved yet ;-) I now am able to assign
>hosts to pools and groups, at the cost of specifying the MAC twice.
>
>Almost there ;-)
>
>  thanks
>
>  Goesta
>
>




More information about the dhcp-users mailing list