Static IP OpenHABian RPi3

Due to several bindings and systems being dependent by the IP-address of my OpenHABian system, I would like to make the IP static. I looked in my router settings to let the DHCP server give the same IP to the MAC address of the RPi but unfortunately the router is from my local provider and they do not let me change anything from the DHCP server. I have to go for the other option then and give the RPi a static IP. However when I look in the ‘interfaces’ file in /etc/network it states the following:

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

But when I look in that file, I don’t understand what to do. So my question, does anyone have a working solution for this?
I am using the latest stable version of OpenHAB installed on a RPi 3 with OpenHABian.

Thanks in advance!

1 Like

Check out these 2 guides:


&
https://www.modmypi.com/blog/how-to-give-your-raspberry-pi-a-static-ip-address-update

OpenHABian = Raspbian Jessie based so these instructions will work also for you

3 Likes

Hero! Thanks for the quick response and good tutorials. The first one did the job for me.