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

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!

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.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}