Subnet assigment using subClass

Glenn Satchell glenn.satchell at uniq.com.au
Wed Nov 26 11:27:50 UTC 2014


On Wed, November 26, 2014 5:58 am, Márcio Merlone wrote:
> On 25-11-2014 16:41, Bob Harold wrote:
>> Not all clients send a dhcp-client-identifier, so try also listing the
>> hardware address, and I think the semicolon is needed:
>>
>> subclass "clsDesktop" 1:08:00:27:12:34:56;
>> subclass "clsDesktop" 08:00:27:12:34:56;
> Hi,
>
> Thanks for your answer. Already found that info on the net, but no luck
> with that. Regarding semicolon, it is not needed when using {}. Had to
> use them to conform with what dhcpd-conf-to-ldap expects, while for
> dhcpd they works the same:
>
> subclass "clsDesktop" 08:00:27:12:34:56;
> subclass "clsDesktop" 08:00:27:12:34:56 {}
>
> AFAIK Windows sends the dhcp-client-identifier, so this should not be
> the issue (am using a Win7 VM).

Hi Márcio

The leading '1' is not the dhcp-client-identifier, it is the network type.
'1' is ethernet, there's also values for the rarely seen token ring and
fddi, so the first example is right:

subclass "clsDesktop" 1:08:00:27:12:34:56 {}

As mentioned earlier, being defined in a host statement makes a client
known. Being a member of a class does not make a client known.

from dhcpd.conf man page:

"An unknown client is simply a client that has no host declaration."

regards,
-glenn





More information about the dhcp-users mailing list