[Dnsmasq-discuss] dnsmasq-discuss at lists.thekelleys.org.uk
simon at thekelleys.org.uk
Thu Nov 17 09:43:56 GMT 2011
On 17/11/11 04:00, Ilya Evseev wrote:
> Hi, Simon and Everybody!
> There is "VLAN per customer" network.
> Server with dnsmasq is attached to all vlans.
> MAC-addrs of clients are unknown and freely changeable.
> Is it possible to make DHCP-answers depending on interface name?
> For example:
> It seems that the only way is to run multiple dnsmasq or udhcpd instances,
> each serving single interface/client.
> WBR, Ilya
Presumably each VLAN has a different subnet? If so you can provide
dhcp-host lines for each subnet and the one with a matching IP address
will be used.
From the man page:
The tag system works as follows: For each DHCP request,
lects a set of valid tags from active configuration lines which
set:<tag>, including one from the dhcp-range used to
address, one from any matching dhcp-host (and "known" if a
matches) The tag "bootp" is set for BOOTP requests, and a
name is the name of the interface on which the request arrived
So there should be a tag set with the name of the interface which is
useful for selecting DHCP options etc (but not dhcp-host)
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
More information about the Dnsmasq-discuss