I know that there are many threads online about this, however, many are out of date, and I still have problems. I would greatly appreciate some help.
Background: I am an experienced user who knows Linux well. I have been working with Pis in particular for about 2 years. I have had these problems for the whole of my time working with Pis.
Problem: Wifi will startup and connect, however, it always disconnects (IP address shown by ifconfig disappears) after a period between 10 mins and 12 hours. There is never any problem with ethernet connections.
Setup: I have 2 Pis - a 2B (with Edimax USB adapter) and a Pi 3. They both have the same problem. Each has a dedicated power supply - 5V/1.1 Amp for the Pi 2 and 5V/2.1 Amp for the Pi 3. They are dedicated power supplies, not phone chargers.
I am using a Apple Airport Extreme wireless router using Channel 8 and 2.4 GHz network with WPA Personal encryption.
I am using Raspian Jessie Version 8, Kernel version 4.4. I run apt-get update and upgrade each week religiously.
I run both Pis as headless via SSH and never use them as desktop machines.
My /etc/network/interfaces file is:
Code: Select all
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.confCode: Select all
country=AU
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="SSID"
psk="password"
}When I boot the Pis with no ethernet connected, the results are unpredictable - sometimes wifi will come up (often with varying IP addresses across different reboots), but will always die at some point later. Sometimes the wifi will simply not come up at all.
What do I want to happen?
Ideally, I would like to bring the Pis up on wifi with no ethernet attached, and have that connection stay up the whole time, with a predictable IP address.
If that is not possible, I would like to bring up the Pis with ethernet attached, but still have the wifi connection stay up the whole time.
Is anyone able to suggest a resolution here? I am clearly doing something very wrong, but as you can see, my configuration files are very vanilla.
Thanks,
David.