<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 4/28/22 09:20, Will Dennis wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:DS7PR22MB36456A9A02870099BAEADB2780FD9@DS7PR22MB3645.namprd22.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}div.WordSection1
        {page:WordSection1;}</style>
      <div class="WordSection1">
        <p class="MsoNormal">Hi all,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I currently have dnsmasq set up and working
          well for the LAN that the dnsmasq server is on (for our
          purposes, say 192.168.0.0/24.) Config is like this currently:<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <br>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Now, I have now set up a router (layer-3
          switch) that has interfaces to multiple other networks off of
          it, all having a /28 network mask. It has been set to be a
          DHCP relay (“ip helper”) pointing DHCP requests from these new
          networks to the dnsmasq server. I cannot seem to find a
          “howto” on how to configure dnsmasq to serve multiple dhcp
          pools/associated options so it can be the single DHCP/DNS
          server for these multiple new networks. In my reading of the
          man pages, I *<b>think</b>* I’d have to do something like this
          in my config to enable this:<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">domain-needed<o:p></o:p></p>
        <p class="MsoNormal">bogus-priv<o:p></o:p></p>
        <p class="MsoNormal">strict-order<o:p></o:p></p>
        <p class="MsoNormal">no-hosts<o:p></o:p></p>
        <p class="MsoNormal">dhcp-authoritative<o:p></o:p></p>
        <p class="MsoNormal">dhcp-leasefile=/var/lib/misc/dnsmasq.leases<o:p></o:p></p>
        <p class="MsoNormal">domain=nec-labs.com<o:p></o:p></p>
        <p class="MsoNormal">dhcp-range=192.168.0.20,192.168.0.59,1h<o:p></o:p></p>
        <p class="MsoNormal">dhcp-option=option:router,192.168.0.1<o:p></o:p></p>
        <p class="MsoNormal">dhcp-range=set:vlan10,192.168.1.1,192.168.1.13,255.255.255.240,1h<o:p></o:p></p>
        <p class="MsoNormal">dhcp-option=tag:vlan10,option:router,192.168.1.14<o:p></o:p></p>
        <p class="MsoNormal">[…]<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Am I correct in this? And, I don’t need to
          tag the original pool/options, do I?<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><br>
        </p>
      </div>
    </blockquote>
    <p><br>
    </p>
    Here is what I have in my config for multiple subnets and directing
    various services.  I am running dnsmasq on a seperate host in the
    lan subnet.  I tag even the default lan for clarity.<br>
    <p><br>
    </p>
    <p><span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;"># Subnet
          specific delarations </span><br>
        dhcp-range=lan,192.168.101.100,192.168.101.200,96h <br>
        dhcp-range=IOT,192.168.102.100,192.168.102.200,96h <br>
        dhcp-range=guest,192.168.103.100,192.168.103.200,72h <br>
        dhcp-range=camera,192.168.104.100,192.168.104.200,72h <br>
        <br>
        # Define router <br>
        dhcp-option=tag:lan,option:router,192.168.101.1 <br>
        dhcp-option=tag:IOT,option:router,192.168.102.1 <br>
        dhcp-option=tag:guest,option:router,192.168.103.1 <br>
        dhcp-option=tag:camera,option:router,192.168.104.1 <br>
        <br>
        # Define DNS servers (DNSmasq server - also DHCP)<br>
        dhcp-option=option:dns-server,192.168.101.2 <br>
        <br>
        # Define NTP servers <br>
        dhcp-option=tag:lan,option:ntp-server,192.168.101.1 <br>
        dhcp-option=tag:IOT,option:ntp-server,192.168.102.1 <br>
        dhcp-option=tag:guest,option:ntp-server,192.168.103.1 <br>
        dhcp-option=tag:camera,option:ntp-server,192.168.104.1 <br>
        <br>
        <br>
        # Common definitions <br>
        dhcp-option=option:netmask,255.255.255.0 <br>
        dhcp-option=15,"mydomain" # Domain name  <br>
        dhcp-option=101,America/Denver <br>
      </span></p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
  </body>
</html>