Setup Raspberry Pi with Static IP Address

From Double Jump Electric Wiki
Jump to navigation Jump to search

Flash the Raspberry Pi with etcher.

On the SD Card in the root directory of the boot partition, create an empty file called **ssh** or **ssh.txt**

On the SD Card in the etc directory of the rootfs boot partition, open the dhcpcd.conf file with root permissions.

Add the following lines to the bottom of the file. (This example assumes your ip address is, and your gateway is

interface eth0
static ip_address=
static routers=

Log into the Pi via SSH and expand the filesystem with: raspi-config --expand-rootfs

Once you can log into the Pi remotely via SSH, see the notes on internet sharing so that you can update the Pi with the latest packages.


  1. Enabling SSH
  2. Configuring the Pi SD Card with a Static IP
  3. Expanding the File System