Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Configuring a Static IP on HypriotOS for the Raspberry Pi

DZone's Guide to

Configuring a Static IP on HypriotOS for the Raspberry Pi

Here's a quick tutorial to set up a static IP on Hyperiot for the Raspberry Pi.

· IoT Zone
Free Resource

Discover why Bluetooth mesh is the next evolution of IoT solutions. Download the mesh overview.

How you configure a static IP on the Pi changed between Wheezy and Jessie, and there seems to be a variation on Hypriot’s prebuilt images for running Docker on the Pi.

Edit /etc/network/interfaces.d/eth0, comment out the DHCP line:

iface eth0 inet dhcp


And add:

iface eth0 inet static
address your-static-ip
gateway your-gateway-ip
#google dns servers
domain_name_servers=8.8.8.8, 8.8.4.4


Done!

Take a deep dive into Bluetooth mesh. Read the tech overview and discover new IoT innovations.

Topics:
raspberry pi ,wheezy ,jessie ,docker

Published at DZone with permission of Kevin Hooke, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}