<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;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<div id="divtagdefaultwrapper" 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-arch, 0</span>
dhcp-boot=tag:subnet1,tag:bios,pxelinux.0,reposerver,172.16.17.15
dhcp-boot=tag:subnet2,tag:bios,pxelinux.0,reposerver,192.168.17.15
# UEFI ipv4 PXE
dhcp-match=set:efi-x86_64,option:client-arch,7
dhcp-boot=tag:efi-x86_64,tag:subnet2,EFI/bootx64.efi,reposerver,172.16.17.15</code></pre>
<div id="divtagdefaultwrapper" 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="divtagdefaultwrapper" 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="divtagdefaultwrapper" 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="divtagdefaultwrapper" 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="divtagdefaultwrapper" 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%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Från:</b> Dnsmasq-discuss <dnsmasq-discuss-bounces@lists.thekelleys.org.uk> för Jimmy Vance <flhxs14@gmail.com><br>
<b>Skickat:</b> den 18 april 2018 18:18<br>
<b>Till:</b> dnsmasq-discuss@lists.thekelleys.org.uk<br>
<b>Ämne:</b> [Dnsmasq-discuss] help with 'tag' option for multiple subnets</font>
<div> </div>
</div>
<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.17.100,172.16.17.254,1d
dhcp-option=tag:subnet1,3,172.16.17.1
# BIOS ipv4 PXE
dhcp-boot=pxelinux.0,reposerver,172.16.17.15
# UEFI ipv4 PXE
dhcp-match=set:efi-x86_64,option:client-arch,7
dhcp-boot=tag:efi-x86_64,EFI/bootx64.efi,reposerver,172.16.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.17.100,172.16.17.254,1d
dhcp-option=tag:subnet1,3,172.16.17.1
dhcp-range=set:subnet2,192.168.17.100,192.168.17.254,1d
dhcp-option=tag:subnet2,3,192.168.17.1
# BIOS ipv4 PXE
dhcp-boot=tag:subnet1,pxelinux.0,reposerver,172.16.17.15
dhcp-boot=tag:subnet2,pxelinux.0,reposerver,192.168.17.15
# UEFI ipv4 PXE
dhcp-match=set:efi-x86_64,option:client-arch,7
dhcp-boot=tag:efi-x86_64,EFI/bootx64.efi,reposerver,172.16.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>
</body>
</html>