[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 192.168.0.1/24
interface eth1 192.168.1.1/24
dhcp-range=192.168.0.2,192.168.0.100
dhcp-range=192.168.1.2,192.168.1.100
dhcp-host=00:11:22:33:44:55,192.168.0.99
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
HTH
Simon.
More information about the Dnsmasq-discuss
mailing list