Assigning host entries to diffrent subnets

Simon Hobson dhcp1 at
Fri Sep 28 06:59:18 UTC 2007

Eric Bloodaxe wrote:
>I have several networks on the same physical interface, I have set 
>up dhcpd.conf along the lines:
>shared-network goldall {
>       subnet netmask {
>.....various options...
>    }
>subnet netmask {
>     ......options.....             pool {
>                       range;
>                       deny known clients;
>       }
>I have a list of clients I want to associate with the various pools; 
>however when I put host directives with in the subnet scopes I get 
>the following warning:
>WARNING: Host declarations are global.  They are not limited to the 
>scope you declared them in.
>So what I cannot figure out from is how to associate diffrent groups 
>of host entries with diffrent  subnets?

That's because you can't - as the warning says, host declarations are 

Look in the man page for dhcpd.conf and see the sections on classes 
and subclasses. There is an example there of how you may assign hosts 
to classes based on MAC address, or if there is something unique 
about these clients (eg vendor class id is some value) then you could 
write a generic match on that feature.

More information about the dhcp-users mailing list