"unsetting" global options for a host

Simon Hobson dhcp1 at thehobsons.co.uk
Tue Jan 31 09:39:42 UTC 2012


Christian Kratzer wrote:

>why don't you just put the hosts in different groups depending on the
>options they need.  Sounds like you know the specific hosts you need
>to exluded so why not just list them in a group.

Not sure about the OP, but in the general case it's more likely to be 
a case of "all clients whether specified by host statements or not 
get option X - except for ..."

So it makes sense to specify the option in the global scope so it 
applies to all dynamic clients, in all subnets & pools, as well as 
defined hosts. The problem then is unsetting an option for a small 
number of clients - which might not have fixed addresses. So it would 
be ideal if the following were possible :

option X blah ;

subnet ...
   range ...
}

group ...
   unset option X
   host ...
     hardware ...
   host ...
     hardware ...
}
-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.



More information about the dhcp-users mailing list