I wanted to share a solution I found after struggling with an IPv4 connection issue on my Raspberry Pi running OpenHab. After a power dip, my IPv4 connection dropped, while IPv6 remained functional. After some research, I discovered that removing existing DHCP leases and rebooting the device resolved the problem. Here’s how I did it:
bash
sudo rm /var/lib/dhcp/*
sudo reboot now
This simple fix restored my IPv4 connectivity. I suspect the issue arose after changing my ISP and router, as I had previously used a reserved DHCP address for the Pi. I hope this helps anyone experiencing similar issues. If you have any questions or alternative solutions, feel free to share!