My Pi3 won't connect to the house network via the inbuilt wireless interface. I've checked all the mods to /etc/network/interfaces and /etc/wpa_supplicant/wpa_supplicant.conf that are needed as part of the Raspbian Jesse set up, and they match what is required. It seems unable to associate with the SSID and pick up a DHCP lease.
My network/interfaces file:
auto lo wlan0
iface lo inet loopback
iface wlan0 inet dhcp
When I run
iwlist wlan0 scan I am able to see the network to which I want to connect, but when I run
sudo ifup wlan0 I'm told it doesn't receive any lease offers.
I've checked and only a single wpa_supplicant process is running. I've also disabled bluetooth at start up to check try and make sure there are no issues there.
I'm at a bit of a loss as I've no idea what to do next. Anyone able to help?
I went back and applied the file as you had provided @Milliways.
It didn't work on either my home network or my mobile phone hotspot. I modified the following line:
iface wlan0 inet manual to
iface wlan0 inet dhcp and it works with the phone but not with the router at home.
There is no "MAC address white list" on the home router, so it's not clear to me why it is unable to connect. Checking the WPA-PSK value, it is correct (and I generated the key the same way for both phone and router).
I am doing it all CLI via a term connection as the pi is headless, so I'm not overly concerned about GUI access.