http://raspberrypi.stackexchange.com/questions/39785/dhcpcd-vs-etc-network-interfaces/41187#41187
Applicable to:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie
In /etc/dhcpcd.conf
:
Example configuration for wireless (use $ ifconfig
to find interface names). Add to bottom of dhcpcd.conf
(new lines under existing info that is there by default):
interface wlan0
static ip_address=192.168.1.202/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
Reboot and verify static IP:
hostname -I