DZone
IoT Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > IoT Zone > Configuring a Static IP on HypriotOS for the Raspberry Pi

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.

Kevin Hooke user avatar by
Kevin Hooke
·
Jul. 22, 16 · IoT Zone · Tutorial
Like (2)
Save
Tweet
6.64K Views

Join the DZone community and get the full member experience.

Join For Free

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!

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.

Popular on DZone

  • What Is the Difference Between SAST, DAST, and IAST?
  • SRE: From Theory to Practice: What's Difficult About Incident Command?
  • Calling JavaFX From Java?
  • Grails 1.0 Released!

Comments

IoT Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo