Assigning host entries to diffrent subnets

Erik Bloodaxe E.Bloodaxe at
Fri Sep 28 09:00:41 UTC 2007

Simon Hobson wrote:
> Eric Bloodaxe wrote:
>> I have several networks on the same physical interface, I have set up 
>> dhcpd.conf along the lines:
>> authoritative;
>> 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 
> global<period>
> 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.
Thanks for this.  I have looked at the man page but need more help.  I 
think you are refering to the secion from Client classing and 
subclassing in the dhcpd.conf man page.  I have seen this but I cannot 
find any further information on the syntax of the match commnad.  Can 
some one assist?

I think you mean set up some sub classes along the lines:

Subclass "subnet1" etheraddress1
Subclass "subnet1" etheraddress2
Subclass "subnet1" etheraddress3
Subclass "subnet2" etheraddress4
Subclass "subnet2" etheraddress5

and so forth and catch the "subnet"s with a

allow members of "sunbnet1" in appropriate pools.but again I cannot find 
the full syntax for the allow command.

Can someone point me in the right direction?

Many thanks


More information about the dhcp-users mailing list