[Dnsmasq-discuss] dhcp relay and static reservations
Simon Kelley
simon at thekelleys.org.uk
Tue Mar 3 21:40:32 GMT 2009
James Allman wrote:
> I have several remote networks on unique subnets that will be configured
> with a dhcp relay to a central dnsmasq server. Users may connect their
> laptop to any of the remote networks. I need to assign a specific
> static ip address based upon the remote network the user has connected
> to and their mac address.
>
> I thought I could assign a network id using the dhcp-range and match it
> with dhcp-host but the man page says it will only set a network id and
> does not mention matching on one.
>
> How can I configure this scenario with dnsmasq?
>
> - James
>
Just use a dhcp-host configuration line for each network. Dnsmasq will
automatically use the right one.
dhcp-host=11:22:33:44:55:66, <ip on net 1>
dhcp-host=11:22:33:44:55:66, <ip on net 2>
etc
HTH
Simon.
More information about the Dnsmasq-discuss
mailing list