[Dnsmasq-discuss] Multiple interfaces responding to DHCP requests

Horn Bucking buckhorn at weibsvolk.org
Thu May 13 20:01:13 UTC 2021


According to dnsmasq documentation, it would seem neither dhcp-option 
nor dhcp-range (at least for IPv4) would accept an interface:

-O, 
--dhcp-option=[tag:<tag>,[tag:<tag>,]][encap:<opt>,][vi-encap:<enterprise>,][vendor:[<vendor-class>],][<opt>|option:<opt-name>|option6:<opt>|option6:<opt-name>],[<value>[,<value>]]

-F, 
--dhcp-range=[tag:<tag>[,tag:<tag>],][set:<tag>,]<start-addr>[,<end-addr>|<mode>][,<netmask>[,<broadcast>]][,<lease 
time>]


However, dnsmasq would auto-tag DHCP requests with "a tag whose name is 
the name of the interface on which the request arrived".

Did you try to prefix your interface names with the 'tag:' keyword?
E.g.

dhcp-option=tag:enp2s0,1,255.255.255.0
dhcp-range=tag:enp2s0,192.168.1.100,192.168.1.199,infinite
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20210513/18394e03/attachment.htm>


More information about the Dnsmasq-discuss mailing list