<div dir="ltr">Thanks Fredrik, I'll give that a try</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 19, 2018 at 1:54 AM, Lindgren Fredrik <span dir="ltr"><<a href="mailto:Fredrik.Lindgren@tieto.com" target="_blank">Fredrik.Lindgren@tieto.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_4662943181947732803divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<div id="m_4662943181947732803divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi Jimmy,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">You can have multiple tag checks for each statement</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">i.e:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<pre style="margin-top:0px;margin-bottom:1em;padding:5px;border:0px;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);word-wrap:normal;color:rgb(36,39,41)"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;white-space:inherit"># BIOS ipv4 PXE
<span>dhcp-match=bios,option:client-<wbr>arch, 0</span>
dhcp-boot=tag:subnet1,tag:<wbr>bios,pxelinux.0,reposerver,<wbr>172.16.17.15
dhcp-boot=tag:subnet2,tag:<wbr>bios,pxelinux.0,reposerver,<wbr>192.168.17.15

# UEFI ipv4 PXE
dhcp-match=set:efi-x86_64,<wbr>option:client-arch,7
dhcp-boot=tag:efi-x86_64,tag:<wbr>subnet2,EFI/bootx64.efi,<wbr>reposerver,172.16.17.15</code></pre>
<div id="m_4662943181947732803divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
There are also tags automatically created for incoming interface</div>
So if you have multiple interfaces on machine and get the DHCP requests for the different subnets from different interfaces you can use that to select which range to answer with</div>
<div id="m_4662943181947732803divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
Otherwise you are using dhcp-relay and then there should be some indication from that, though haven't looked at any such setup so can't give examples for that.</div>
<div id="m_4662943181947732803divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<br>
</div>
<div id="m_4662943181947732803divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
Br,</div>
<div id="m_4662943181947732803divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
Fredrik<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_4662943181947732803divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Från:</b> Dnsmasq-discuss <<a href="mailto:dnsmasq-discuss-bounces@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss-bounces@<wbr>lists.thekelleys.org.uk</a>> för Jimmy Vance <<a href="mailto:flhxs14@gmail.com" target="_blank">flhxs14@gmail.com</a>><br>
<b>Skickat:</b> den 18 april 2018 18:18<br>
<b>Till:</b> <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss@lists.<wbr>thekelleys.org.uk</a><br>
<b>Ämne:</b> [Dnsmasq-discuss] help with 'tag' option for multiple subnets</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-style:normal;font-weight:400;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
I have a simple dnsmasq configuration that handles PXE for BIOS PXE as well as UEFI PXE and this works well. I need to add a second subnet and planned on using the same system to act as the DHCP server for both subnets. I know how to add a tag to options, but
 for UEFI I already have a tag set, and cannot figure out how to add the proper tags to have these options serve both subnets properly</p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-style:normal;font-weight:400;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
Current config</p>
<pre style="margin:0px 0px 1em;padding:5px;border:0px;font-style:normal;font-weight:400;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);word-wrap:normal;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;background-color:rgb(239,240,241);white-space:inherit">dhcp-range=set:subnet1,172.16.<wbr>17.100,172.16.17.254,1d
dhcp-option=tag:subnet1,3,172.<wbr>16.17.1
# BIOS ipv4 PXE
dhcp-boot=pxelinux.0,<wbr>reposerver,172.16.17.15
# UEFI ipv4 PXE
dhcp-match=set:efi-x86_64,<wbr>option:client-arch,7
dhcp-boot=tag:efi-x86_64,EFI/<wbr>bootx64.efi,reposerver,172.16.<wbr>17.15
</code></pre>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-style:normal;font-weight:400;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
Adding additional subnet</p>
<pre style="margin:0px 0px 1em;padding:5px;border:0px;font-style:normal;font-weight:400;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);word-wrap:normal;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;background-color:rgb(239,240,241);white-space:inherit">dhcp-range=set:subnet1,172.16.<wbr>17.100,172.16.17.254,1d
dhcp-option=tag:subnet1,3,172.<wbr>16.17.1
dhcp-range=set:subnet2,192.<wbr>168.17.100,192.168.17.254,1d
dhcp-option=tag:subnet2,3,192.<wbr>168.17.1

# BIOS ipv4 PXE
dhcp-boot=tag:subnet1,<wbr>pxelinux.0,reposerver,172.16.<wbr>17.15
dhcp-boot=tag:subnet2,<wbr>pxelinux.0,reposerver,192.168.<wbr>17.15

# UEFI ipv4 PXE
dhcp-match=set:efi-x86_64,<wbr>option:client-arch,7
dhcp-boot=tag:efi-x86_64,EFI/<wbr>bootx64.efi,reposerver,172.16.<wbr>17.15
</code></pre>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-style:normal;font-weight:400;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
I haven't had any luck running across a similar configuration that explains how to handle the existing tag in the UEFI section so I can specify different IP addresses for each subnet.</p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-style:normal;font-weight:400;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
Any ideas or suggestions welcomed</p>
<br>
</div>
</div>
</div></div></div>
</div>
</div>
</div>

</blockquote></div><br></div>