I am using the following command

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

and my file looks like this

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
        ssid="your ssid here"
        psk="your psk here"
        key_mgmt=WPA2-PSK
}

Obviously with the correct ssid and pass... However, when I run sudo ifconfig or wget it doesn't connect to the internet. Is there something I am missing?

This is a pi zero w

Is there something else missing for it to work?

  • when I run sudo ifconfig or wget it doesn't connect to the internet. Please add the output of ifconfig(no sudo) to your question. – Dirk Dec 3 at 18:59
  • And please also add the output of sudo iw wlan0 info and sudo iw wlan0 link. – Ingo Dec 3 at 19:51
  • What happens if you kill and restart wpa_supplicant? /sbin/wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211 – Dougie Dec 3 at 21:42
  • 1
    See How to set up networking/WiFi As you have provided no diagnostic information no one can help. PS ifconfig is deprecated. – Milliways Dec 3 at 22:57
  • This is the instructions I needed -- thank you! – user1472266 Dec 4 at 9:35

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.