Page 1 of 1

raspberry don't have ip addres

Posted: Sat Nov 30, 2013 12:39 pm
by andrewdobrowolsky
Hi,
My raspberry has been working very well long time and everything was ok. Yesterday I tried run my raspberry and it didn't get ip. I rebooted my router, nothing help. I checked another sdcard with my raspberry and it works. I plugged my sdcard to computer and file /etc/network/interfaces is good. I use raspbery only by ssh . What is possible problem ? It very care me of this :(

Re: raspberry don't have ip addres

Posted: Sun Dec 01, 2013 4:05 am
by DougieLawson
Are you using wired or WiFi?

Can you cut and paste the output from

Code: Select all

lsusb
ifconfig -a
cat /etc/network/interfaces

Re: raspberry don't have ip addres

Posted: Sun Dec 01, 2013 6:59 am
by profwamba
maybe your sdcard is corrupted

You can add the ip (until next reboot) with sudo ip addr add 192.168.0.100/32 dev eth0

You can also give your raspberry pi an IP address by adding 'ip = 192.168.0.4' at the end of cmdline.txt Do that using the command: sudo nano /boot/cmdline.txt Make sure you nothing else, not even a space or a return. After that, reboot your pi and type hostname -I to see if the ip address is set.