How to set static IP for OpenHAB
Need fixed IP address for OpenHAB? Simple guide will show you how to set static IP address on linux Debian systems like Raspbian. You can use same principle in ubuntu or other debian like linux systems. Connect to OpenHAB via SSH:
sudo nano /etc/network/interfaces
and change or add lines below. Change "address" to your preferred IP address and "gateway" to your environment (mainly your router IP address at home)
# The primary network interface
allow-hotplug eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 10.0.0.200 #ip address for openhab
netmask 255.255.255.0
gateway 10.0.0.250 #in most cases ip address of your home router
Save this settings with shortcut Right CTRL+O, press Enter and exit RCTRL+X.
Reboot your OpenHAB with command::
sudo reboot
and your OpenHAB should have a static specific IP.
Add comment