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.
Join the DZone community and get the full member experience.
Join For FreeHow 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!
raspberry pi
Published at DZone with permission of Kevin Hooke, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments