I have Raspbian Jessie on RPI 2 B, I cannot set my wired NIC with a static IP address.
I have uninstalled raspberrypi-net-mods ifplugd, because have a lot of stability issues and insists on uses dhcpcd.....
Now it works fine, but it uses isc-dhcp-client , and I don't want it.
root@raspberrypi:~# egrep -v "#|^$" /etc/network/interfaces source-directory /etc/network/interfaces.d auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet static address 192.168.80.148 netmask 255.255.255.0 gateway 192.168.80.1 dns-nameservers 192.168.80.1
Logs show as follows:
Nov 26 18:04:58 raspberrypi systemd: Starting Default. Nov 26 18:04:58 raspberrypi systemd: Reached target Default. Nov 26 18:04:58 raspberrypi systemd: Startup finished in 37ms. Nov 26 18:04:58 raspberrypi systemd: Started User Manager for UID 0. Nov 26 18:05:01 raspberrypi CRON: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Nov 26 18:07:51 raspberrypi dhclient: DHCPREQUEST on eth0 to 192.168.80.1 port 67 Nov 26 18:07:51 raspberrypi dhclient: DHCPACK from 192.168.80.1 Nov 26 18:07:51 raspberrypi systemd: Reloading LSB: start Samba SMB/CIFS daemon (smbd). Nov 26 18:07:51 raspberrypi smbd: Reloading /etc/samba/smb.conf: smbd. Nov 26 18:07:51 raspberrypi systemd: Reloaded LSB: start Samba SMB/CIFS daemon (smbd).
Note I've tried auto instead allow-hotplug but if I reboot router which RPI is plugged it lost its link and I have to poweroff in a dirty way... And logs showing that it is using DHCP: