andrewdobrowolsky
Posts: 1
Joined: Sat Nov 30, 2013 12:19 pm
Location: Warsaw

raspberry don't have ip addres

Sat Nov 30, 2013 12:39 pm

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 :(

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: raspberry don't have ip addres

Sun Dec 01, 2013 4:05 am

Are you using wired or WiFi?

Can you cut and paste the output from

Code: Select all

lsusb
ifconfig -a
cat /etc/network/interfaces
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
profwamba
Posts: 1
Joined: Sun Dec 01, 2013 6:35 am
Location: Johannesburg
Contact: Website

Re: raspberry don't have ip addres

Sun Dec 01, 2013 6:59 am

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.
Rugby is great. The players don't wear helmets or padding; they just beat the living daylights out of each other and then go for a beer. I love that.

Return to “Troubleshooting”