<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
This a configuration for a router where eth0.1 and wifi are bridged to br-lan. br-lan is a proper interface as far as dnsmasq is concerned. Also note but not related, it is probably a good idea to use tags. Set a tag for each network range dhcp4 and dhcp6 with
 options.<br>
<br>
#######################################<br>
dhcp-authoritative<br>
domain-needed<br>
no-hosts<br>
localise-queries<br>
read-ethers<br>
bogus-priv<br>
expand-hosts<br>
local-service<br>
dhcp-generate-names<br>
#######################################<br>
cache-size=4000<br>
dns-forward-max=100<br>
dhcp-lease-max=250<br>
domain=lan<br>
server=/lan/<br>
min-port=16384<br>
#######################################<br>
dhcp-leasefile=/tmp/dhcp.leases<br>
resolv-file=/tmp/resolv.conf.auto<br>
addn-hosts=/tmp/hosts<br>
conf-dir=/tmp/dnsmasq.d<br>
#######################################<br>
stop-dns-rebind<br>
conf-file=/usr/share/dnsmasq/trust-anchors.conf<br>
dnssec<br>
dnssec-timestamp=/etc/dnsmasq.time<br>
#######################################<br>
interface-name=routername.lan,br-lan<br>
interface-name=routername,br-lan<br>
interface-name=ipv4.routername.lan,br-lan/4<br>
<p>interface-name=ipv6.routername.lan,br-lan/6</p>
<p>#######################################<br>
</p>
dhcp-range=set:lan,192.168.1.100,192.168.1.249,255.255.255.0,8h<br>
<p>dhcp-option=tag:lan,option:ntp-server,0.0.0.0<br>
</p>
<p>dhcp-option=tag:lan,252,"\n"</p>
<p>dhcp-range=set:lan6,::1000,::ffff,constructor:br-lan,slaac,ra-names,8h<br>
</p>
dhcp-option=tag:lan6,option6:ntp-server,[fd00::]<br>
<p>dhcp-option=tag:lan6,option6:dns-server,[::]</p>
ra-param=br-lan,high,300,3600<br>
no-dhcp-interface=eth0.2<br>
#######################################<br>
enable-ra<br>
quiet-ra<br>
#######################################<br>
<br>
</div>
</body>
</html>