Skip to content

Instantly share code, notes, and snippets.

@ericdorsey
Created September 7, 2016 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericdorsey/006e80ec2ce43f586b3593d148e91858 to your computer and use it in GitHub Desktop.
Save ericdorsey/006e80ec2ce43f586b3593d148e91858 to your computer and use it in GitHub Desktop.
Raspbian Static IP config

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment