One subnet, two pools, one with a default gateway, the other without

Steven Carr sjcarr at
Mon Aug 12 17:12:40 UTC 2013

On 12 August 2013 16:29, Ugo Bellavance <ugob at> wrote:
> Using that configuration, all clients get the subnet's config (so even the
> ones I want to have no default gateway get one).  If I remove the subnet's
> config, the "Reservations" hosts don't get a default gateway while they
> should.

The DHCP config uses inheritance for the various levels e.g. pool from
subnet, subnet from global. Host objects inherit from global and the
subnet that they are in (and as was recently discussed in another
thread it is bad practice to include host declarations inside the
subnet declaration as they are globally defined).

So in order to achieve what you want you need to remove the routers
option from the subnet declaration, add the routers option to the pool
declaration that needs a router and then also add the routers option
to each host declaration.


More information about the dhcp-users mailing list