Global Scope (fwd)

Keith kwoody at
Thu Sep 13 18:32:51 UTC 2007

On Wed, 12 Sep 2007, Simon Hobson wrote:

|->Keith wrote:
|->>|->If your host declarations are all outside subnet declarations
|->>|->then you shouldn't get this message. So go back and double check.
|->>I think I have caught it:
|->>shared-network "TE_DOCSIS" {
|->>  subnet netmask {
|->>     include "/etc/docsis_dhcp/STATIC-24-244-66";
|->>     more stuff
|->>  } #end subnet
|->>  subnet netmask {
|->>     include "etc/docsis_dhcp/STATIC-24-244-67";
|->>     more stuff
|->>  } #end subnet
|->>} #end shared-network
|->>In each of the includes above are host declarations. Is this what dhcpd is
|->>complaining about?
|->>There are more subnets there but this is just a quick snippet of what it
|->>looks like.
|->Yes, that's what it'll be complaining about.

Ive tried to move those includes around in dhcpd.conf but when I do I get
bad parse due to having range statements in each of the includes.

DHCP is reloaded automatically when changes are done and a bunch of files,
including the STATIC includes are updated and rewritten from info in a
mysql database. The range statements are done to exclude certain IP's that
have been marked in the database as static.

Ive put the includes outside completely of the main {} and outside
the shared-network statement. The only place they work is inside the
subnet declaration for each network, because of the range statements in
each include file. And thats where range statements go, inside the subnet
declarations, hence the error.

So regardless, will dhcpd still work as it has before? At this point I
dont have an easy way to do statics other than the way it is done now.


More information about the dhcp-users mailing list