Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a Netgear router which is acting as a DHCP server. There I've configured the MAC address of my RaspPI for obtaining a reserved/fixed IP address.

Unfortunately when booting the RaspPI no IP address is being obtained and assigned to the ethernet interface, hence the box is unreachable on the LAN.

When removing the reserved/fixed IP configuration all is just peachy, and the RaspPI is being presented with the first free IP of the DHCP pool.

How to tackle this one, so that the RaspPI can obtain the reserved/fixed IP from the router?

share|improve this question
Do you have any other devices that successfully get static IP addresses? – HeatfanJohn Jan 10 '13 at 2:05
The solution is probably on the Netgear router. I use a fixed IP assignment based on the MAC address of my pi on my Fedora DHCP server and it works fine. – TomG Jan 10 '13 at 2:59
Please upload a screen shot of the config page from the Netgear router, where you set the statis IP of the RPi. I had to do this and also found that the Netgear instructions were not too clear. – Vincent P Jan 10 '13 at 5:49
You're going to need to assign it on the Raspberry Pi itself. I had this same problem running DD-WRT on my router. If you do it on the Pi, you can even assign a specific gateway and subnet whereas most routers will automatically assign those (with no way to change it). – Andrew Larsson Jan 10 '13 at 17:25
Yes, all other devices are working properly fine! Only the RaspPI is having some issues! :( – user4338 Jan 10 '13 at 18:56

Some people have found that a new MAC address is generated every time their Pi boots. Check that the MAC address is the same every time you reboot. If not, read this thread on the Raspberry Pi forum: http://www.raspberrypi.org/phpBB3/viewtopic.php?p=90975

Try adding the following to /boot/config.txt

share|improve this answer

Have you tried restarting the router after you set the static IP assignment on the Netgear ?
Perhaps something is going wrong with the DHCP server within the Netgear...

share|improve this answer

Try this. I am not sure if you are having the same problem as me. I was not able to access the internet through my raspberry pi neither was i getting it connected to the lan through it. I tried sudo ifup eth0 and got the error message as the one shown in the link.

share|improve this answer

do it the linux way is to make the raspberry pi have a static ip.

cd /etc/network


sudo nano interfaces

then you will see a line like iface eth0 inet dhcp

change the "dhcp" to "static"

then underneath that (like next line):


and thats how you make a static ip.

i have never heard of a router giving out static. at least my training in CompTIA's A+ and Network+ dont say that. Windows and Mac work the same way.

gateway is the router your using. you dont have to put the dns line in, but if you use opendns, then i would.

the ip addresses and netmask are things you would change to suit your situation. i hope this helps!

share|improve this answer
Generally, routers can reserve IP addresses for a specific mac address...in effect making it static. – Lawrence Sep 8 '13 at 7:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.