<div dir="ltr"><div dir="ltr">Dear Geert and Simon,</div><div><br></div><div>I'm not native english speaker. I try to describe things the best I can. I'm sorry if I failed to do it clearly enough.<br></div><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, May 14, 2022 at 02:53:51AM +0200, Kamil via Dnsmasq-discuss wrote:<br>
> > On 11/05/2022 12:41, Kamil via Dnsmasq-discuss wrote:<br>
> > > Hi!<br>
> > > I've configured Dnsmasq with the following config:<br>
> > ><br>
> > > interface=eth0<br>
> > > bind-interfaces<br>
> > > dhcp-option=3,192.168.6.1<br>
> > > dhcp-option=6,8.8.8.8<br>
> > > set long-lasting records.<br>
> > > dhcp-range=192.168.6.11,192.168.6.20,255.255.255.0,12h<br>
> > ><br>
> > ><br>
> > > And most of the devices work just fine (here is the example syslog):<br>
> > ><br>
> > > May 10 16:25:11 myhost dnsmasq-dhcp[1862]: DHCP packet received on eth0 which has no address<br>
> > > May 10 16:25:12 myhost dhcpcd[740]: eth0: carrier acquired<br>
> > > May 10 16:25:12 myhost kernel: [ 1598.601129] bcmgenet fd580000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off<br>
> > > May 10 16:25:12 myhost dhcpcd[740]: eth0: IAID 01:XX:XX:90<br>
> > > May 10 16:25:12 myhost dhcpcd[740]: eth0: adding address <mac><br>
> > > May 10 16:25:12 myhost dhcpcd[740]: eth0: probing address <a href="http://192.168.6.1/24" rel="noreferrer" target="_blank">192.168.6.1/24</a> <<a href="http://192.168.6.1/24" rel="noreferrer" target="_blank">http://192.168.6.1/24</a>><br>
> > > May 10 16:25:12 myhost avahi-daemon[384]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::XX:XX:XX:d2c.<br>
> > > May 10 16:25:12 myhost avahi-daemon[384]: New relevant interface eth0.IPv6 for mDNS.<br>
> > > May 10 16:25:12 myhost avahi-daemon[384]: Registering new address record for fe80::XX:XX:XX:d2c on eth0.*.<br>
> > > May 10 16:25:12 myhost dhcpcd[740]: eth0: soliciting an IPv6 router<br>
> > > May 10 16:25:12 myhost dnsmasq-dhcp[1862]: DHCP packet received on eth0 which has no address<br>
> > > May 10 16:25:14 myhost dnsmasq-dhcp[1862]: DHCP packet received on eth0 which has no address<br>
> > > May 10 16:25:16 myhost dnsmasq-dhcp[1862]: DHCP packet received on eth0 which has no address<br>
> > > May 10 16:25:16 myhost dhcpcd[740]: eth0: using static address <a href="http://192.168.6.1/24" rel="noreferrer" target="_blank">192.168.6.1/24</a> <<a href="http://192.168.6.1/24" rel="noreferrer" target="_blank">http://192.168.6.1/24</a>><br>
> > > May 10 16:25:17 myhost avahi-daemon[384]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.6.1.<br>
> > > May 10 16:25:17 myhost avahi-daemon[384]: New relevant interface eth0.IPv4 for mDNS.<br>
> > > May 10 16:25:17 myhost dhcpcd[740]: eth0: adding route to <a href="http://192.168.6.0/24" rel="noreferrer" target="_blank">192.168.6.0/24</a> <<a href="http://192.168.6.0/24" rel="noreferrer" target="_blank">http://192.168.6.0/24</a>><br>
> > > May 10 16:25:17 myhost avahi-daemon[384]: Registering new address record for 192.168.6.1 on eth0.IPv4.<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 available DHCP range: 192.168.6.11 -- 192.168.6.20<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 DHCPDISCOVER(eth0) <mac><br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 tags: known, eth0<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 DHCPOFFER(eth0) 192.168.6.15 <mac><br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 requested options: 1:netmask, 3:router, 28:broadcast, 6:dns-server<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 next server: 192.168.6.1<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 sent size: 1 option: 53 message-type 2<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 sent size: 4 option: 54 server-identifier 192.168.6.1<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 sent size: 4 option: 51 lease-time infinite<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 sent size: 4 option: 1 netmask 255.255.255.0<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 sent size: 4 option: 28 broadcast 192.168.6.255<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 sent size: 4 option: 3 router 192.168.6.1<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 sent size: 4 option: 6 dns-server 192.168.6.1<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 available DHCP range: 192.168.6.11 -- 192.168.6.20<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 DHCPREQUEST(eth0) 192.168.6.15 <mac><br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 tags: known, eth0<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 DHCPACK(eth0) 192.168.6.15 <mac><br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 requested options: 1:netmask, 3:router, 28:broadcast, 6:dns-server<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 next server: 192.168.6.1<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 sent size: 1 option: 53 message-type 5<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 sent size: 4 option: 54 server-identifier 192.168.6.1<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 sent size: 4 option: 51 lease-time infinite<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 sent size: 4 option: 1 netmask 255.255.255.0<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 sent size: 4 option: 28 broadcast 192.168.6.255<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 sent size: 4 option: 3 router 192.168.6.1<br>
> > > May 10 16:25:20 myhost dnsmasq-dhcp[1862]: 1567457464 sent size: 4 option: 6 dns-server 192.168.6.1<br>
> > > May 10 16:25:26 myhost dhcpcd[740]: eth0: no IPv6 Routers available<br>
> > ><br>
> > ><br>
> > > Except one - the RTMU86 NFC reader to which Dnsmasq doesn't assign the<br>
> > > IP address. Here syslog shows:<br>
> > ><br>
> > > May 10 16:26:15 myhost dhcpcd[740]: eth0: carrier acquired<br>
> > > May 10 16:26:15 myhost kernel: [ 1661.024489] bcmgenet fd580000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off<br>
> > > May 10 16:26:15 myhost dhcpcd[740]: eth0: IAID 01:XX:XX:90<br>
> > > May 10 16:26:15 myhost dhcpcd[740]: eth0: adding address fe80::XX:XX:XX:d2c<br>
> > > May 10 16:26:15 myhost dhcpcd[740]: eth0: probing address <a href="http://192.168.6.1/24" rel="noreferrer" target="_blank">192.168.6.1/24</a> <<a href="http://192.168.6.1/24" rel="noreferrer" target="_blank">http://192.168.6.1/24</a>><br>
> > > May 10 16:26:15 myhost avahi-daemon[384]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::XX:XX:XX:d2c.<br>
> > > May 10 16:26:15 myhost avahi-daemon[384]: New relevant interface eth0.IPv6 for mDNS.<br>
> > > May 10 16:26:15 myhost avahi-daemon[384]: Registering new address record for fe80::XX:XX:XX:d2c on eth0.*.<br>
> > > May 10 16:26:15 myhost dhcpcd[740]: eth0: soliciting an IPv6 router<br>
> > > May 10 16:26:17 myhost dnsmasq-dhcp[1862]: DHCP packet received on eth0 which has no address<br>
> > > May 10 16:26:20 myhost dhcpcd[740]: eth0: using static address <a href="http://192.168.6.1/24" rel="noreferrer" target="_blank">192.168.6.1/24</a> <<a href="http://192.168.6.1/24" rel="noreferrer" target="_blank">http://192.168.6.1/24</a>><br>
> > > May 10 16:26:20 myhost avahi-daemon[384]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.6.1.<br>
> > > May 10 16:26:20 myhost avahi-daemon[384]: New relevant interface eth0.IPv4 for mDNS.<br>
> > > May 10 16:26:20 myhost avahi-daemon[384]: Registering new address record for 192.168.6.1 on eth0.IPv4.<br>
> > > May 10 16:26:20 myhost dhcpcd[740]: eth0: adding route to <a href="http://192.168.6.0/24" rel="noreferrer" target="_blank">192.168.6.0/24</a> <<a href="http://192.168.6.0/24" rel="noreferrer" target="_blank">http://192.168.6.0/24</a>><br>
> > > May 10 16:26:28 myhost dhcpcd[740]: eth0: no IPv6 Routers available<br>
> > > May 10 16:26:35 myhost dhcpcd[740]: eth0: carrier lost<br>
> > > May 10 16:26:35 myhost kernel: [ 1681.494492] bcmgenet fd580000.ethernet eth0: Link is Down<br>
> > > May 10 16:26:35 myhost dhcpcd[740]: eth0: deleting address fe80::XX:XX:XX:d2c<br>
> > > May 10 16:26:35 myhost avahi-daemon[384]: Withdrawing address record for fe80::XX:XX:XX:d2c on eth0.<br>
> > > May 10 16:26:35 myhost avahi-daemon[384]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::XX:XX:XX:d2c.<br>
> > > May 10 16:26:35 myhost avahi-daemon[384]: Interface eth0.IPv6 no longer relevant for mDNS.<br>
> > > May 10 16:26:35 myhost avahi-daemon[384]: Withdrawing address record for 192.168.6.1 on eth0.<br>
> > > May 10 16:26:35 myhost avahi-daemon[384]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.6.1.<br>
> > > May 10 16:26:35 myhost avahi-daemon[384]: Interface eth0.IPv4 no longer relevant for mDNS.<br>
> > > May 10 16:26:35 myhost dhcpcd[740]: eth0: deleting route to <a href="http://192.168.6.0/24" rel="noreferrer" target="_blank">192.168.6.0/24</a> <<a href="http://192.168.6.0/24" rel="noreferrer" target="_blank">http://192.168.6.0/24</a>><br>
> > > May 10 16:26:38 myhost dhcpcd[740]: eth0: carrier acquired<br>
> > > May 10 16:26:38 myhost kernel: [ 1684.565026] bcmgenet fd580000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off<br>
> > > May 10 16:26:38 myhost dhcpcd[740]: eth0: IAID 01:79:77:90<br>
> > > May 10 16:26:38 myhost dhcpcd[740]: eth0: adding address fe80::XX:XX:XX:d2c<br>
> > > May 10 16:26:38 myhost dhcpcd[740]: eth0: probing address <a href="http://192.168.6.1/24" rel="noreferrer" target="_blank">192.168.6.1/24</a> <<a href="http://192.168.6.1/24" rel="noreferrer" target="_blank">http://192.168.6.1/24</a>><br>
> > > May 10 16:26:38 myhost avahi-daemon[384]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::XX:XX:XX:d2c.<br>
> > > May 10 16:26:38 myhost avahi-daemon[384]: New relevant interface eth0.IPv6 for mDNS.<br>
> > > May 10 16:26:38 myhost avahi-daemon[384]: Registering new address record for fe80::XX:XX:XX:d2c on eth0.*.<br>
> > > May 10 16:26:38 myhost dnsmasq-dhcp[1862]: DHCP packet received on eth0 which has no address<br>
> > > May 10 16:26:39 myhost dhcpcd[740]: eth0: soliciting an IPv6 router<br>
> > > May 10 16:26:41 myhost dnsmasq-dhcp[1862]: DHCP packet received on eth0 which has no address<br>
> > > May 10 16:26:42 myhost dhcpcd[740]: eth0: using static address <a href="http://192.168.6.1/24" rel="noreferrer" target="_blank">192.168.6.1/24</a> <<a href="http://192.168.6.1/24" rel="noreferrer" target="_blank">http://192.168.6.1/24</a>><br>
> > > May 10 16:26:42 myhost dhcpcd[740]: eth0: adding route to <a href="http://192.168.6.0/24" rel="noreferrer" target="_blank">192.168.6.0/24</a> <<a href="http://192.168.6.0/24" rel="noreferrer" target="_blank">http://192.168.6.0/24</a>><br>
> > > May 10 16:26:42 myhost avahi-daemon[384]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.6.1.<br>
> > > May 10 16:26:42 myhost avahi-daemon[384]: New relevant interface eth0.IPv4 for mDNS.<br>
> > > May 10 16:26:42 myhost avahi-daemon[384]: Registering new address record for 192.168.6.1 on eth0.IPv4.<br>
> > > May 10 16:26:52 myhost dhcpcd[740]: eth0: no IPv6 Routers available<br>
> > ><br>
> > ><br>
> > > But when I used isc-dhcp-server with following config:<br>
> > ><br>
> > > subnet 192.168.6.0 netmask 255.255.255.0 {<br>
> > > interface eth0;<br>
> > > ddns-update-style none;<br>
> > > default-lease-time 600;<br>
> > > max-lease-time 3600;<br>
> > > authorative;<br>
> > > range 192.168.6.11 192.168.6.20;<br>
> > > option subnet-mask 255.255.255.0;<br>
> > > option routers 192.168.6.1;<br>
> > > option domain-name-servers 8.8.8.8;<br>
> > > get-lease-hostnames true;<br>
> > > use-host-decl-names true;<br>
> > > }<br>
> > > DHCP packet received on<br>
> > > eth0 which has no address<br>
> > ><br>
> > > then isc-dhcp-server assigns correct IP to RTMU86.<br>
> > > Why doesn't Dnsmasq want to assign IP to RTMU86?<br>
> ><br>
> > In the first log, dnsmasq starts off NOT assigning addresses because<br>
> > eth0 doesn't have an IP address, then eth0 gets an IP address via dhcpcd<br>
> > and it all starts to work. In the second log, it looks like all the DHCP<br>
> > requests happen before the address gets assigned to eth0, so none work.<br>
> > <br>
> > I don't think this is a specific problem with the RTMU86, it's that your<br>
> > configuration is intermittently broken.<br>
> ><br>
> ><br>
> > Simon.<br>
> ><br>
> ><br>
> <br>
> It's the same configuration.<br>
> 1. I plug one device - it works.<br>
> 2. I unplug it and plug the RTMU86 - doesn't work.<br>
> 3. I Unplug RTMU86 and plug any other device - it works.<br>
> <br>
> Nothing changes in the network, nothing changes in the config.<br>
<br>
Things that poster is missing:<br>
> > > May 10 16:26:35 myhost dhcpcd[740]: eth0: carrier lost<br>
> > > May 10 16:26:38 myhost dhcpcd[740]: eth0: carrier acquired<br>
and <br>
> > > May 10 16:25:17 myhost dhcpcd[740]: eth0: adding route to <a href="http://192.168.6.0/24" rel="noreferrer" target="_blank">192.168.6.0/24</a> <<a href="http://192.168.6.0/24" rel="noreferrer" target="_blank">http://192.168.6.0/24</a>><br>
> > > May 10 16:26:35 myhost dhcpcd[740]: eth0: deleting route to <a href="http://192.168.6.0/24" rel="noreferrer" target="_blank">192.168.6.0/24</a> <<a href="http://192.168.6.0/24" rel="noreferrer" target="_blank">http://192.168.6.0/24</a>><br>
. That are network and configuration changes.<br></blockquote><div>Ok, by "nothing changes in the config" I meant that I was changing any config files (or even not touching the keyboard at all) - I was just plugging and unplugging devices.</div><div>If this is the "network and configuration changes", then I'm sorry for misunderstanding.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thing that I miss: "Yeah, I unplug and plug cables" in response to<br>
> > ... , it's that your configuration is intermittently broken.<br></blockquote><div>Yes, I was switching devices on a physical ethernet port.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> The same config in isc-dhcp-server works fine in both cases.<br>
<br>
Yes, that remark is seen.<br>
Same as was seen the first post.<br>
Thing different this time: No silence.<br></blockquote><div>What do you mean by "No silence"?<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Goal is a better world.<br></blockquote><div>I agree.<br></div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Go all out upon contacting libre software projects. Do tell what is happening at **your** side. If you unplug/plug cables to generate check events, say so. </blockquote><div>I'm sorry that my first description was not detailed enough. What more information could I provide?<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> If you have a comparison setup, describe also that setup. </blockquote><div>What do you mean by "comparison setup"?</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">If you could not resist to obfuscate information, say explicit
that you are mangling data.<br></blockquote><div>I wasn't aware that changing "54" to "XX" in the mac address was a significant change, I'm sorry.<br></div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Be yourself, accept yourself. Full focus on the challenge that you are facing. </blockquote><div>Sure<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">So please avoid noise like "I'm new". </blockquote><div>Please, point out which part of my message sounded like that and I promise to avoid it.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Surely avoid an attitude like "you are the experts, you understand me and you must help me"<br></blockquote><div>I'm humbly asking for help. I'm far away from the "you must help me" attitude.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Do know there are real humans behind the email addresses.<br></blockquote><div>If any part of my message offended you - that was not my point in any circumstances. <br></div><div><br></div><div>Kind regards,</div><div>Kamil<br></div></div></div>