In order to have my raspberry with a static ip, I have written my interfaces file in this mode:
auto lo
iface lo inet loopback
allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.1.74
netmask 255.255.255.0
gateway 192.168.1.254
after that I did
update-rc.d dhcpcd disable
Without this command, the dhcpcd daemon ignores the interfaces file and requires an address for eth0 using dhcp. (This is a very bad decision of the Debian maintainers.)
The problem is: if I unplug and replug the cable, after replug the system does not use the interfaces file but requires an address with dhcp!!!
What can I do to resolve this problem?
The same file works perfectly in a Debian 7 machine.