Raspberry Pi: Setting a static IP address using dhcpcd.conf

To enable a static IP address on the Raspberry Pi append the following to the file /etc/dhcpcd.conf:

nodhcp
interface eth0
static ip_address=192.168.4.181/24
static routers=192.168.4.1
static domain_name_servers=192.168.4.159 208.67.222.222

Resources

Tags:
Source:
2319hrs.txt
Published:
01-03-2016 23:19