How Do I Set A Static IP Address On Raspbian Jessie

This one stumped me longer than it should have.

If you are familiar with older versions of Raspbian then you are likely use to looking in /etc/network/interfaces to edit static IP configurations.

This has since changed in Raspbian Jessie. I would recommend restoring that file if you have edited it.

In order to set a static IP address on Raspbian Jessie you will need to edit /etc/dhcpcd.conf

To do that simply type sudo nano /etc/dhcpcd.conf

At the bottom of your file you should add the following code…

Of course, you should change your IP address to be whatever you would like for it to be.

The interface eth0 line is for a wired connection (using a network cable).

The interface wlan0 is for a wireless connection (WiFi dongle).

You will need to run sudo reboot for these changes to take place.

Once your Pi has rebooted type in sudo ip addr show look for your interface (wlan0 or eth0) and see if that IP address was changed.

Here is where I got stuck

I admit it, I can be a big NOOB sometimes.

I kept getting 127.0.0.1 as my IP address which looked like a localhost IP address or something.

I am using a WiFi dongle and it hit me, after a clean install of Raspbian Jessie I never connected to my network. So I booted into the GUI (because it’s easier for me) and connected to my Wifi by just clicking the icon in the top navigation bar. Once I found my network and typed in the password I was able to see the static IP address I had specified.

That’s it.

Now I can SSH into my Raspberry Pi.