[Dnsmasq-discuss] DHCP for Multiple Subnets
Simon Kelley
simon at thekelleys.org.uk
Wed May 29 11:13:06 BST 2013
On 29/05/13 10:57, Robert Sweetnam wrote:
>
>
> Are your subnets all in the same broadcast-domain (ie the piece of
> virtual "wire" attached to eth0) or are they different physical networks
> connected via routers to the eth0 "wire"?
>
> Cheers,
>
> Simon.
>
> Hi Simon,
>
> They are the latter. That is they are different physical networks connected via routers.
>
In that case you need something called a "DHCP-helper" or "DHCP-relay"
which runs on a machine which does have an interface on the physical
network. Normally it runs on the router, but it doesn't have to. The
DHCP-helper receives the "where am I" broadcast from the client, tags it
with the address of the interface in which it was received (which solves
you original problem) and sends it on to the DHCP server for address
allocation.
Most dedicated routers include this function: you just have to configure
the address of the machine running dnsmasq. If your router can't do it,
but you have a machine on each network running Linux (either the router
or another machine) then
http://www.thekelleys.org.uk/dhcp-helper/
will do the trick.
You don't need any extra configuration in dnsmasq, beyond providing
suitable dhcp-ranges.
Cheers,
Simon.
More information about the Dnsmasq-discuss
mailing list