Home > How To, Raspberry pi, Technology > Raspberry pi – Setting your pi to a static ip address

Raspberry pi – Setting your pi to a static ip address


In the GUI left click in the bottom left hand corner on the blue cross  to display the options menu (Like the start button in windows) go to accessories and then left click on LXterminal to display the terminal window

Type in the following command

sudo nano /etc/network/interfaces

This file controls the IP address of the raspberry pi and other network interfaces if required.

Scroll down to “iface eth0 inet” which is under “iface lo inet loopback” and add the following information

iface eth0 inet “change dhcp to static”

address (Ip address you want for the Pi)

netmask (Subnet of your perosnal network)

gateway (Ip address of your gateway/router)

You need to inculde the titles of each section in the file and not just the numbers for this work.

So mine would look like this

iface eth0 inet static

address 192.168.1.100

netmask 255.255.255.0

gateway 192.168.1.1

Save the updated interfaces file by pushing ctrl+x and then pushing Y and then enter to return to the terminal.

Give your raspberry pi a reboot to pick up the new IP address

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

raspberrypicloud

The University of Glasgow's Raspberry Pi Project

Tech-o-rama

Your all round solution for tech problems (and some others things...like spelling errors)

telling stories - making memories

Raspberry Pi Kid

An 11 (now 12)-year old's adventures with Raspberry Pi

Naked Security

Computer Security · News · Opinion · Advice · Research

Grumpy IT Girl

I'm not a very good writer

Dustin Software

Because programming is fun!

Project Failure

Technology rants, reviews, and whatever else I feel like posting.

Pinoy Tekkie

USER-FRIENDLY TECHNOLOGIES FOR THE PINOY NOOBIES

petRockBlog

Fun stuff for technics enthusiasts

I Kissed My Date Goodnight

Just a single girl trying to navigate life, faith, and the thirty-something dating scene.

projectz

Tech, Gadgets, Photography, Social Media and Poor Spelling

Programming My Rasberry Pi

A brave fool's adventures into the unknown!

Chris Ainger's Blog

Where Fishing Meets Computing

PIPAL

Information wants to be free

ITtechExec: Protecting Tech Careers Since 2001

Technical Career Advancement: Transformed. Guaranteed.

Crunchedd

Entertainment, Technology, Social Media updates from in between the web.

StartupTunes

An Exclusive Web 2.0 Startups Review Blog

The Life of Me

Just another IT blog

NJrajgelani

The Best Place for Deziners

Follow

Get every new post delivered to your Inbox.

Join 94 other followers

%d bloggers like this: