Sub-pool or pool hierarchy

Doug Barton dougb at dougbarton.us
Mon Oct 14 18:51:13 UTC 2013


On 10/14/2013 11:46 AM, Sten Carlsen wrote:
> You may want to look at the man page for dhcpd.conf, the following
> example is taken from that:
>
> subnet 10.0.0.0 netmask 255.255.255.0 {
>    option routers 10.0.0.254;
>
>   # Unknown clients get this pool.
>    pool {
>      option domain-name-servers bogus.example.com;
>      max-lease-time 300;
>      range 10.0.0.200 10.0.0.253;
>      allow unknown-clients;
>    }
>
>   # Known clients get this pool.
>    pool {
>      option domain-name-servers ns1.example.com, ns2.example.com;
>      max-lease-time 28800;
>      range 10.0.0.5 10.0.0.199;
>      deny unknown-clients;
>    }
> }
>
> As you see here you can put options in subnets as well as pools. The
> common options like router is in the subnet and the the more specific
> options are in the pools together with the allows and denys.

Wouldn't that require host declarations to define the known hosts?

Doug



More information about the dhcp-users mailing list