I have 5 Raspberry Pi 3's around my house doing various things.

Last night I purchased and configured a new one - but I can't access the Internet via WIFI.

If I plug in an ethernet cable, the Internet works perfectly. I can connect to my WIFI network without problems, I can even SSH into this new PI when connected to my network.

But I can't access the Internet.

I have already configured my SSID like this:

In /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev


I assume this has something to do with the default gateway, but I know very little about default gateways. Here's the output of "route -n":

/home/pi> route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   U     303    0        0 wlan0

To recap:

  • Internet works when I plug in ethernet
  • I can connect to my local WIFI network
  • When connected to my local WIFI I can ssh into pi
  • When connected to my local network, I am unable to access the Internet
  • Running the most up-to-date Raspbian GNU/Linux 8 (jessie)

What else can I try?

  • 1
    post the output of ifconfig
    – Milliways
    Commented Feb 17, 2017 at 20:50

1 Answer 1


Connect to your local net and ping google.com from the command line. If you get something about not finding the host, try ping -c 3 If the numeric ping works and not the ping to google, the name resolution is messed up. That's what I've messed up most often. /etc/resolv.conf should contain the address of a nameserver -- if nothing else, the line nameserver should work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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