[Dnsmasq-discuss] dhcp-host within an interface

Simon Kelley simon at thekelleys.org.uk
Wed Sep 22 10:23:08 BST 2010

Timothy Redaelli wrote:
> Hi,
> I have a little complicate setup and I need to have static leases
> (dhcp-hosts) that responds ONLY on a specific interface.
> I have set:$interface in my dhcp-range line so I could use tag:, but
> tag: is not supported in dhcp-host command.
> Do you know any other way?

On most setups this is a non-issue because a static lease assignment is
only used when the address falls within a subnet associated with the
interface. An example

interface eth0
interface eth1



If 00:11:22:33:44:55 turns up on the network connected to eth0, it will
get If it turns up in eth1, it will get a dynamic address
somewhere between and It would be possible to
have a second dhcp-host to statically assign an address on 192.168.1.x



More information about the Dnsmasq-discuss mailing list