<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I know this problem has been discussed many time but I can&#8217;t find solution in previous posts.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I explain my problem:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I actually have a dnsmasq which attribute public IP on all machines of a network (one interface).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I would like to attribute private addresses on some equipements based on mac.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>On the conf file, I put: &nbsp;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>interface=eth0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>port=0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcp-mac=test,AA:BB:e7:*:*:*<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcp-leasefile=/tmp/dhcp.lease<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcp-range=net:test,172.16.0.0,172.16.1.254,255.255.254.0,24h<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcp-range=XXX.YYY.22.10,XXX.YYY.23.249,255.255.254.0,24h<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>and others options.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>In result, all requests are still responded with XXX.YYY&#8230; addresses<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>I tried with &#8220;tag:test&#8221; instead of &#8220;net:test&#8221; on dhcp-range but the result is the same.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>On log file, I obtain :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>May 19 07:58:36 dnsmasq[17611]: DHCP packet: transaction-id is 2675549209 <br>May 19 07:58:36 dnsmasq[17611]: Available DHCP range: XXX.YYY.22.10 -- XXX.YYY.23.249 <br>May 19 07:58:36 dnsmasq[17611]: Vendor class: dslforum.org <br>May 19 07:58:39 dnsmasq[17611]: DHCPDISCOVER(eth0) AA:BB:e7:ca:fe:81 <br>May 19 07:58:39 dnsmasq[17611]: DHCPOFFER(eth0) XXX.YYY.22.234 AA:BB:e7:ca:fe:81 <br>May 19 07:58:39 dnsmasq[17611]: requested options: 1:netmask, 28:broadcast, 43:vendor-encap, <br>May 19 07:58:39 dnsmasq[17611]: requested options: 3:router, 6:dns-server, 60:vendor-class <br>May 19 07:58:39 dnsmasq[17611]: tags: test <br>May 19 07:58:39 dnsmasq[17611]: sent size: 1 option: 53:message-type 02 <br>May 19 07:58:39 dnsmasq[17611]: sent size: 4 option: 54:server-identifier bc:49:01:32 <br>May 19 07:58:39 dnsmasq[17611]: sent size: 4 option: 51:lease-time ff:ff:ff:ff <br>May 19 07:58:39 dnsmasq[17611]: sent size: 4 option: 1:netmask ff:ff:fe:00 <br>May 19 07:58:39 dnsmasq[17611]: sent size: 4 option: 28:broadcast 5e:8c:17:ff <br>May 19 07:58:39 dnsmasq[17611]: sent size: 82 option: 43:vendor-encap 49:6e:74:65:72:6e:65:74:47:61:74:65:77... <br>May 19 07:58:39 dnsmasq[17611]: sent size: 8 option: 6:dns-server 08:08:08:08:08:08:04:04 <br>May 19 07:58:39 dnsmasq[17611]: sent size: 4 option: 3:router 5e:8c:16:01 <br>May 19 07:58:39 dnsmasq[17611]: sent size: 79 option: 82:agent-id 01:04:00:03:a3:0e:02:06:00:10:e7:ca:fe...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>It seems that&#8217;s the request is responded before the tag occured.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Is anyone have an idea of what is wrong on my conf file?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>My dnsmasq version is 2.45 and I can&#8217;t update it.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>Mathieu</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p></div></body></html>