Hi,
My local network is managed by a local gateway/router/proxy running Rocky Linux 8 and stuff like Dnsmasq, Squid, SquidAnalyzer, etc.
The whole configuration is described in this Ansible playbook:
So far this worked perfectly, but today I had a hardware crash. The PC Engines routerboard apparently went belly up.
Fortunately I have a spare one in my office. So I installed Rocky Linux 8 on it along with Git and Ansible. I fetched the playbook. I didn’t even have to adjust the network interface names, since they were the same than the previous machine.
I just ran the playbook, and less than an hour later (it’s not a very fast machine) I had my configuration back.
Now I’m facing a weird problem. Dnsmasq seems to work OK, but only for those machines that weren’t connected recently. My main workstation and my laptop can’t seem to get an IP address from the router. Dnsmasq’s logs look like this:
Apr 26 14:23:24 dnsmasq-dhcp[682]: DHCPDISCOVER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:23:24 dnsmasq-dhcp[682]: DHCPOFFER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:23:40 dnsmasq-dhcp[682]: DHCPDISCOVER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:23:40 dnsmasq-dhcp[682]: DHCPOFFER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:23:40 dnsmasq-dhcp[682]: DHCPDISCOVER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:23:40 dnsmasq-dhcp[682]: DHCPOFFER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:23:55 dnsmasq-dhcp[682]: DHCPDISCOVER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:23:55 dnsmasq-dhcp[682]: DHCPOFFER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:23:55 dnsmasq-dhcp[682]: DHCPDISCOVER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:23:55 dnsmasq-dhcp[682]: DHCPOFFER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:23:58 dnsmasq-dhcp[682]: DHCPDISCOVER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:23:58 dnsmasq-dhcp[682]: DHCPOFFER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:23:58 dnsmasq-dhcp[682]: DHCPDISCOVER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:23:58 dnsmasq-dhcp[682]: DHCPOFFER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:24:03 dnsmasq-dhcp[682]: DHCPDISCOVER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:24:03 dnsmasq-dhcp[682]: DHCPOFFER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:24:03 dnsmasq-dhcp[682]: DHCPDISCOVER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Apr 26 14:24:03 dnsmasq-dhcp[682]: DHCPOFFER(enp2s0) 192.168.2.5 d0:37:45:24:61:bd
Do I have to clear some weird cache-related or lease-related stuff on the client side? I vaguely figure there’s some problem because the new machine obviously has a different MAC address on the LAN interface, but I’m not proficient enough in network internals to know exactly what is wrong here.
Any suggestions ?