Based on the dnsmasq man page, it appears that tags aren't working for dhcp-options in dnsmasq-2.45. Here's my understanding of how it should be used:<div><br></div><div>To set dhcp options for a dhcp range:</div>
<div><br></div><div><div>domain-needed</div><div>bogus-priv</div><div>bind-interfaces</div><div><br></div><div>listen-address=192.168.118.1</div><div><br></div><div>dhcp-range=set:0,192.168.118.50,192.168.118.99,255.255.255.0</div>
<div><br></div><div>dhcp-option=tag:0,6,10.50.8.218</div><div>dhcp-option=tag:0,3,192.168.118.2</div><div><br></div></div><div>Based on this setup, the client should get:</div><div><br></div><div>IP: In the dhcp-range (.50 - .99)</div>
<div>Netmask: 255.255.255.0</div><div>GW: 192.168.118.2</div><div>DNS: 10.50.8.218</div><div><br></div><div>Instead I see:</div><div><br></div><div><div>IP: In the dhcp-range (.50 - .99)</div><div>Netmask: 255.255.255.0</div>
<div>GW: 192.168.118.1</div><div>DNS: 192.168.118.1</div></div><div><br></div><div>It appears that the tags are being ignored. I'm having to use either "net:" or "set:" in place of what I have (see below):</div>
<div><br></div><div>dhcp-range=net:voip,192.168.118.50,192.168.118.99,255.255.255.0
</div><div><div>dhcp-option=net:voip,6,10.50.8.218</div><div>dhcp-option=net:voip,3,192.168.118.2</div></div><div><br></div><div>--- OR ---</div><div><br></div><div><div>dhcp-range=set:0,192.168.118.50,192.168.118.99,255.255.255.0</div>
<div><div>dhcp-option=set:0,6,10.50.8.218</div><div>dhcp-option=set:0,3,192.168.118.2</div></div></div><div><br></div><div>Based on the man page, using "net:" seems to be a legacy option, and "set:" isn't even supported for dhcp-option:</div>
<div><br></div><div><span style="font-family:'Times New Roman';font-size:medium">"This system evolved from an earlier, more limited one and for backward compatibility "net:" may be used instead of "tag:" and "set:" may be omitted. (Except in </span><b style="font-family:'Times New Roman';font-size:medium">dhcp-host,</b><span style="font-family:'Times New Roman';font-size:medium"> where "net:" may be used instead of "set:".) For the same reason, '#' may be used instead of '!' to indicate NOT.</span>
</div><div><span style="font-family:'Times New Roman';font-size:medium"><br></span></div><div><span style="font-family:'Times New Roman';font-size:medium">.</span></div><div><span style="font-family:'Times New Roman';font-size:medium">.</span></div>
<div><span style="font-family:'Times New Roman';font-size:medium">.</span></div><div><br></div><div><b style="font-family:'Times New Roman';font-size:medium">-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>]]</b><span style="font-family:'Times New Roman';font-size:medium">"</span></div>
<div><span style="font-family:'Times New Roman';font-size:medium"><br></span></div><div><span style="font-family:'Times New Roman';font-size:medium"><br></span></div><div>Am I missing something here?</div>