Web interface incorrectly editing dhcpcd.conf?


When I set my static IP address through the web interface, it didn’t go very well. It tended to write multiple lines to /etc/dhcpcd.conf without removing old entries. So if you ever have a bad entry in it, it becomes unable to connect to the internet and unfixable. I had to ssh into my device to fix it. I set my dhcpcd.conf to the following lines, deleted the old entries, and restarted the ethernet network interface and that worked.

interface eth0
static domain_name_servers=
static ip_address=
static routers=

Here is the command to restart the network interface without rebooting.

sudo ifdown eth0; sudo ifup eth0

Obviously other people will need to use a different static IP address than what I used, but at least you get the idea of what I did. I’m just using the Google DNS servers, since the system seems to be pinging www.google.com with a curl command.

The web interface seems to have a hard time picking up the current network configuration, but at least my Server Connection status says that it’s connected now. What’s the best way to report this issue?