how to set class attributes for a host or group instead of a pool?
Sten Carlsen
stenc at s-carlsen.dk
Fri Nov 8 10:53:17 UTC 2013
On 08/11/13 11.04, Niall O'Reilly wrote:
> On 8 Nov 2013, at 09:47, Glenn Satchell wrote:
>
>> With the sub-class you create an entry in one class or the other for each
>> mac address, eg:
>>
>> subclass "pxe" 1:00:01:02:03:04:05;
>> subclass "pxe" 1:00:01:02:03:04:06;
>> subclass "pxe" 1:00:01:02:03:04:07;
>> subclass "pxe" 1:00:01:02:03:04:08;
>> subclass "norm" 1:00:01:02:03:12:32;
>>
>> and
>>
>> host ... { hardware ethernet 00:01:02:03:04:05; fixed-address ... }
>> host ... { hardware ethernet 00:01:02:03:04:06; fixed-address ... }
>> host ... { hardware ethernet 00:01:02:03:04:07; fixed-address ... }
>>
>> If you have lots of hosts, then perhaps a script that generates the
>> included config files would be easier.
> You can also specify distinct actions (e.g. setting variables or options)
> for each subclass, so:
>
> subclass "norm" 1:00:01:02:03:12:32 { ... };
>
> However, the documentation for dhcpd.conf contains the following:
>
> The fixed-address declaration is used to assign one or more fixed IP addresses to a client. It should only appear in a host declaration.
I tested, doesn't work - produces a failure, does not load.
>
> I haven't tried it, so can't say whether or in what circumstances
> this warning can be disregarded.
>
> Best regards,
> Niall O'Reilly
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
--
Best regards
Sten Carlsen
No improvements come from shouting:
"MALE BOVINE MANURE!!!"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20131108/248ffdbf/attachment-0001.html>
More information about the dhcp-users
mailing list