Selecting fixed or dynamic address based on vendor-class-identifier
Sten Carlsen
stenc at s-carlsen.dk
Mon Oct 21 17:38:01 UTC 2013
On 21/10/13 17.38, Anders Blomdell wrote:
> On 2013-10-21 17:24, Sten Carlsen wrote:
>> class "pxeclient" {
>> match if substring (option vendor-class-identifier, 0, 9) =
>> "PXEClient";
>> }
>>
>> host boottest {
>> hardware ethernet 02:13:10:07:11:58;
>> fixed-address 192.168.255.12;
>> }
>>
>>
>> shared-network all{
>> subnet 192.168.254.0 netmask 255.255.255.0 {
>> pool {
>> allow members of "pxeclient";
>> range 192.168.254.100 192.168.254.109;
>> }
>> }
>>
>> subnet 192.168.255.0 netmask 255.255.255.0 {
>> deny members of "pxeclient"; }
>> }
> /tmp/1.conf line 20: expecting allow/deny key
> deny members
> ^
> /tmp/1.conf line 20: expecting a parameter or declaration
> deny members of "pxeclient";
> ^
> /tmp/1.conf line 23: unexpected end of file
> }
> ^
> Configuration file errors encountered -- exiting
>
>
> 'deny members' is only allowed inside pools AFAICT
Yep, you may try to put a pool inside the 255 subnet, probably a pool
may be empty, otherwise give it a range of 1 address at a corner where
it does not hurt.
I am still not sure which takes precedence host or class. As I can read,
it should be host but the man-pages are not always accurate, specially
not in that area.
>
> /Anders
>
--
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/20131021/b80d785d/attachment-0001.html>
More information about the dhcp-users
mailing list