Raspbian Jessie or Stretch Static IP Setup
Static IP Setup for Raspbian Jessie or Stretch
Created: 28/11/2015 | Last Updated: 03/02/2019
This page details how to setup a static IP address on the Ethernet connection on the Raspbian Jessie or Stretch image from http://www.raspberrypi.org/downloads
For this demo we are going to give the Raspberry Pi a static IP address of 10.0.0.220 and a subnet of 24. The router/gateway address will be set at 10.0.0.1 and the DNS server will also be set as 10.0.0.1
You can find the default gateway for your network with the following command.
Step 1: Download the latest Raspbian image and burn to your SD Card following the instructions on http://elinux.org/RPi_Easy_SD_Card_Setup
Step 2: Connect your network cable and boot the pi and login via the GUI or terminal.
Step 3: Now we need to edit /etc/dhcpcd.conf
sudo nano /etc/dhcpcd.conf
Step 4: Add the following at the end of the file and save your changes:
Step 5: Reboot to apply the changes:
Your Raspberry Pi will restart and be accessible on the new IP address