[Dnsmasq-discuss] dnsmasq-discuss at lists.thekelleys.org.uk

Simon Kelley 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:
> dhcp-host=interface:vlan123,set:client123,10.10.10.123
>
> 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, 
dnsmasq col‐
        lects a set of valid tags from active configuration lines which 
include
        set:<tag>,  including  one  from  the  dhcp-range  used to 
allocate the
        address, one from any matching dhcp-host (and "known"  if  a 
dhcp-host
        matches)  The  tag  "bootp"  is set for BOOTP requests, and a 
tag whose
        name is the name of the interface on which the request arrived 
is  also
        set.


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)


HTH

Simon.

>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss




More information about the Dnsmasq-discuss mailing list