[Dnsmasq-discuss] dhcp-host within an interface
simon at thekelleys.org.uk
Wed Sep 22 10:23:08 BST 2010
Timothy Redaelli wrote:
> 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 192.168.0.1/24
interface eth1 192.168.1.1/24
If 00:11:22:33:44:55 turns up on the network connected to eth0, it will
get 192.168.0.99. If it turns up in eth1, it will get a dynamic address
somewhere between 192.168.1.2 and 192.168.1.100. 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