[Dnsmasq-discuss] using DHCP with virtual interfaces
simon at thekelleys.org.uk
Mon Apr 6 09:31:53 BST 2009
Tom Metro wrote:
> Simon Kelley wrote:
>> A way around this might be to set different client-identifiers for the
>> two instances. If they are supplied, client-ids are use to identify host
>> in preference to MAC addresses.
> I had been operating under the assumption that host names and client
> IDs, while not interchangeable, effectively resulted in the same
> behaviors from Dnsmasq.
> I had an existing dhcp-host line keyed off the host name used by the
> primary interface, and it was successfully working to assign a static
> IP, which suggested that my DHCP client was sending a host name, as
> expected. So I figured as long as the DHCP client used for the virtual
> interface sends a different host name, it ought to work.
> So what's the rationale behind the different behaviors?
The behaviour WRT to MAC addresses and client-identifiers is mandated by
the DHCP standards, which don't allow the server to assume identify
between two hosts with different MAC addresses or client-ids based on
the hostname it supplies.
More information about the Dnsmasq-discuss