Srilankanpi
Posts: 2
Joined: Sat Mar 05, 2016 5:46 pm

Pi 2b won't connect to Internet

Sat Mar 05, 2016 5:59 pm

just bought a pi2b...trying to connect it to the Internet by LAN cable. Installed Noobs fine.

Won't connect. Ping www.google.com says unknown host.

The Internet connection is fine as my other computer works fine on same router. Green light next to cable on PI lights up....

I don't know what to do!

Very new to anything to do with the PI or programming, really...and all that I have read seems rather cryptic. Help please!

Thanks.

Habibee
Posts: 1
Joined: Wed Mar 09, 2016 4:17 pm

Re: Pi 2b won't connect to Internet

Wed Mar 09, 2016 6:14 pm

I'm new into linux and raspberry pi.

I have same problem here with Srilankanpi, when i plugged the ethernet cable it's connected and the network panel says : eth0 configured 169.254.x.x but when i ping google.com it says "unknown host"

I tried to plug it out and in again. After several trying, it's connected and says : eth0 configured 192.168.1.x then i can ping google.com and do internet stuff.

The problem is, when i reboot my raspberry pi, it comeback to show : eth0 configured 169.254.x.x again and i can't connect to internet to do such thing like update & upgrade system.

I have no problem on router and ethernet cable.

It's kinda depressing to me. All advice is appreciated.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Pi 2b won't connect to Internet

Thu Mar 10, 2016 7:39 am

Habibee wrote:I have same problem here with Srilankanpi
Are you sure? OP never mentions the 169 address
when i plugged the ethernet cable it's connected and the network panel says : eth0 configured 169.254.x.x but when i ping google.com it says "unknown host"
The 169 address indicates that it doesn't get an address through DHCP
I have no problem on router and ethernet cable.
How did you establish that? Have you tried different ethernet cables and different ports on the router?

Chejo
Posts: 8
Joined: Tue Jul 03, 2012 11:29 pm

Re: Pi 2b won't connect to Internet

Thu Mar 10, 2016 10:38 pm

I am having the same problem. It often doesn't get an IP address, and I have to reboot the PI several times until it gets an IP.
Even I set a static IP when I don't get it from the DHCP I get no network connection.
If I get IP from the DHCP then even if i set it to static it works fine, until the next boot.
On the same port of the router, with the same cable my lap-top doesn't have any problem.

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

Re: Pi 2b won't connect to Internet

Fri Mar 11, 2016 8:50 am

How is your RPi connected to your network? Is it wired or WiFi?

If wired then replace the cable between your RPi and the network switch, or try another port on the switch.
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.

Return to “Troubleshooting”