I’ve configured my EmonPI with a static IP address
> pi@emonpi(ro):~$ cat /etc/network/interfaces
> # interfaces(5) file used by ifup(8) and ifdown(8)
>
> # Please note that this file is written to be used with dhcpcd
> # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
>
> # Include files from /etc/network/interfaces.d:
> source-directory /etc/network/interfaces.d
>
> auto lo
> iface lo inet loopback
>
> #iface eth0 inet manual
> auto eth0
> iface eth0 inet static
> address 192.168.1.3
> netmask 255.255.255.0
> gateway 192.168.1.1
>
> #allow-hotplug wlan0
> #iface wlan0 inet manual
> # wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
> #iface wlan0 inet dhcp
>
> # GSM 3G Hi_Link USB modem
> #allow-hotplug eth1
> #iface eth1 inet dhcp
There are no other network configs.
pi@emonpi(ro):~$ ls -l /etc/network/interfaces.d/
total 0
My DHCP server doesn’t have the option to assign IP addresses based on MAC address. It’s a poor man’s DHCP built into the Internet router.
About 30 seconds after startup, I can no longer reach the device via the static IP. I can still login via the DHCP IP though. I can reach the static intermittently (for 3 seconds every minute or so).
> My traceroute [v0.85]
> jupiter (0.0.0.0) Thu May 2 21:56:44 2019
> Keys: Help Display mode Restart statistics Order of fields quit
> Packets Pings
> Host Loss% Snt Drop Last Avg Best Wrst Drop
> 1. 192.168.1.3 60.2% 182 109 0.6 0.5 0.3 0.6 109
I want to completely disable DHCP. I see no dhcp client processes nor any related config files. How can I disable DHCP so it no longer interferes with the network settings on the emonpi?