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




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

  1. Bosstiger
    September 10, 2012 at 10:32 am

    Reblogged this on Gigable – Tech Blog.

  1. July 9, 2013 at 8:04 am

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


The University of Glasgow's Raspberry Pi Project


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

telling stories - making memories

Raspberry Pi Kid

A 14-year old's adventures with Raspberry Pi

Naked Security

Computer Security News, Advice and Research

Grumpy IT Girl

I'm not a very good writer

Dustin Software

Because programming is fun!

Pinoy Tekkie



Fun stuff for technics enthusiasts

I Kissed My Date Goodnight

My valiant attempt to navigate life, faith, and the thirty-something dating scene.


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


Information wants to be free

ITtechExec: Protecting Tech Careers Since 2001

Technical Career Advancement: Transformed. Guaranteed.


An Exclusive Web 2.0 Startups Review Blog

The Life of Me

Just another IT blog


The Best Place for Deziners


Get every new post delivered to your Inbox.

Join 115 other followers

%d bloggers like this: