Compressed Config
Ricardo Stella
stella at rider.edu
Tue May 13 20:14:26 UTC 2008
Todd Snyder wrote:
> 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 172.25.1.0 netmask 255.255.255.0 {
> range 172.25.1.16 172.25.1.254;
> option broadcast-address 172.25.1.255;
> option domain-name "prov0.cfg2";
> option domain-name-servers 172.25.70.16, 172.25.65.33;
> option routers 172.25.1.1;
> }
>
> 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 ...
>
>
Good old bash script would do it in no time output to individual subnet
files. Then just use the Include option on your main config file... My
.02...
--
°(((=((===°°°(((===========================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stella.vcf
Type: text/x-vcard
Size: 204 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20080513/f454aa5a/attachment.vcf>
More information about the dhcp-users
mailing list