Compressed Config

Todd Snyder tsnyder at
Tue May 13 19:43:10 UTC 2008

Good day,

I'm setting up a new DHCP server, which will serve about 300 new
subnets.  My subnets are all exactly the same:

subnet netmask {
         option broadcast-address;
         option domain-name "prov0.cfg2";
         option domain-name-servers,;
         option routers; 

And I increment my 3rd octet all the way up to 254.

Same with another network.

Given the sameness of all the subnets, is there a clever way to define
these so each one isn't declared?  Something similar to the $GENERATE
directive in named?  It seems like a lot of work when you have hundreds
of the exact same lines, except 2 numbers changing ...

I'm not fond of the number of lines in the above - my understanding is
that I could do this as well:

Subnet netmask { range; option routers; }; 

And define the rest of the options as a more global scope ... Am I

Thanks much,


Todd Snyder
Tools Analyst
Blackberry Operations
Research In Motion Ltd.
519-888-7465 x73176
tsnyder at 

This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

More information about the dhcp-users mailing list