Static network configuration for Raspian Jessie Lite on a Raspberry Pi 2 B.
Edit /etc/network/interfaces:
/etc/network/interfaces# interfaces(5) # 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 auto eth0 allow-hotplug eth0 iface eth0 inet static address 192.168.0.XXX netmask 255.255.255.0 gateway 192.168.0.XXX dns-nameservers 192.168.0.XXX #allow-hotplug wlan0 #iface wlan0 inet manual # wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf #allow-hotplug wlan1 #iface wlan1 inet manual # wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
And then disable dhcpd:
service dhcpcd stop systemctl disable dhcpcd