<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote"><br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I have a few USB ethernet interfaces that can be hot plugged by users. These are managed by NetworkManager (shared), which automatically allocates an IP address to the interface, and starts up dnsmasq to serve any DHCP requests on that interface.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">The problem occurs with some devices which have already been assigned an IP address come back to dnsmasq for an address. When the interface comes back up, the device does a DHCPDISCOVER on the old subnet, but the OFFER goes back on the new subnet. (maybe?)</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">06:22:50.881436 1a:2b:3c:4d:16:f3 (oui Unknown) > Broadcast, ethertype IPv4 (0x0800), length 390: 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 1a:2b:3c:4d:16:f3 (oui Unknown), length 348</font></div><div class="gmail_default"><font face="monospace, monospace">06:23:08.606107 30:37:16:55:14:51 (oui Unknown) > Broadcast, ethertype IPv4 (0x0800), length 291: 10.42.2.251.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 30:37:16:55:14:51 (oui Unknown), length 249</font></div><div class="gmail_default"><font face="monospace, monospace">06:23:08.606874 1a:2b:3c:4d:16:f3 (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: Request who-has 10.42.0.251 tell 10.42.0.1, length 28</font></div><div class="gmail_default"><font face="monospace, monospace">06:23:09.600302 1a:2b:3c:4d:16:f3 (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: Request who-has 10.42.0.251 tell 10.42.0.1, length 28</font></div><div class="gmail_default"><font face="monospace, monospace">06:23:10.600308 1a:2b:3c:4d:16:f3 (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: Request who-has 10.42.0.251 tell 10.42.0.1, length 28</font></div><div class="gmail_default"><font face="monospace, monospace">06:23:11.110214 1a:2b:3c:4d:16:f3 (oui Unknown) > Broadcast, ethertype IPv4 (0x0800), length 342: 10.42.0.1.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length 300</font></div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">The device seems to be looking for the old DHCP server:</div><div style="font-family:verdana,sans-serif"><br></div><div><div><font face="monospace, monospace">06:23:34.768933 30:37:16:55:14:51 (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 60: Request who-has 10.42.2.1 tell 10.42.2.251, length 46</font></div></div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">My routing table is:</div><div><div><font face="monospace, monospace">default via 192.168.1.1 dev eth0  metric 202 <br></font></div><div><font face="monospace, monospace"><a href="http://10.42.0.0/24" target="_blank">10.42.0.0/24</a> dev eth1  proto kernel  scope link  src 10.42.0.1 </font></div><div><font face="monospace, monospace"><a href="http://169.254.0.0/16" target="_blank">169.254.0.0/16</a> dev wlan0  proto kernel  scope link  src 169.254.214.238  metric 303 </font></div><div><font face="monospace, monospace"><a href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a> dev eth0  proto kernel  scope link  src 192.168.1.20  metric 202 </font></div><div><font face="monospace, monospace"><a href="http://192.168.44.0/24" target="_blank">192.168.44.0/24</a> dev wlan0  proto kernel  scope link  src 192.168.44.1 </font></div><div style="font-family:verdana,sans-serif"><br></div></div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">There is no DHCPNACK offered by dnsmasq?</div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">It almost seems as though it's ignoring the subnet when it offers the IP address?</div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">Has anyone else seen this behavior or can anyone shed some light?</div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">Kind Regards,</div><div style="font-family:verdana,sans-serif">Grant.</div></div><div><br></div>-- <br><div class="m_-7992764199072124331gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="color:rgb(0,0,0);font-family:helvetica">Grant Traynor</div><div style="color:rgb(0,0,0);font-family:helvetica">Chief Technology Officer</div><div style="color:rgb(0,0,0);font-family:helvetica">SwitchDin Pty Ltd</div><div style="color:rgb(0,0,0);font-family:helvetica">Mob <a href="tel:+61%20428%20408%20558" value="+61428408558" target="_blank">+61.428408558</a></div><div style="color:rgb(0,0,0);font-family:helvetica"><a href="mailto:grant.traynor@switchdin.com" style="color:rgb(17,85,204)" target="_blank"><span>grant.traynor@switchdin.com</span></a></div><div style="color:rgb(0,0,0);font-family:helvetica"><a href="http://switchd.in/" style="color:rgb(17,85,204)" target="_blank">http://www.switchdin.com/</a></div><div style="color:rgb(0,0,0);font-family:helvetica"><a href="https://au.linkedin.com/in/grant-traynor-636b095" style="color:rgb(17,85,204)" target="_blank">linkedin.com/in/grant-traynor-<wbr>636b095</a></div><div style="color:rgb(0,0,0);font-family:helvetica"><br></div><div><font color="#000000" face="Helvetica">Level 2, Building B, 91 Parry Street, Newcastle West, NSW, 2302</font><br></div><div style="color:rgb(0,0,0);font-family:helvetica"><br></div><div style="color:rgb(0,0,0);font-family:helvetica"><div style="margin:0px;font-size:11px;font-family:arial"><font color="#a9a9a9">This email and any attachments are proprietary and confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily reflect or represent those of SwitchDin Pty Ltd. If you have received this email in error, please let us know immediately by reply email and delete it from your system. You may not use, disseminate, distribute or copy this message nor disclose its contents to anyone. </font></div><div style="margin:0px;font-size:11px;font-family:arial"><font color="#a9a9a9">SwitchDin Pty Ltd (ABN 29 154893857) PO Box 1165, Newcastle NSW 2300 Australia</font></div></div></div></div></div></div>
</div>
</blockquote></div><br></div></div></div>