I have some Pi's that have both eth and wifi connections and I SSH into them from a windows laptop. They are all using raspbian,although all with different revisions with the oldest using 3.10.25+ and the newest 3.12.23+, and use either Realtek rtl8188cus or rtl8188eu wifi modules.
I normally connect to them using their hostnames but if I want to disconnect the eth I SSH into the Pi using the wifi IP. When I disconnect the eth the wifi then appears
to stop responding but I type Enter a few times on the terminal window and after about 10-15 seconds the wifi starts to respond again.
Just one problem and that is after disconnecting the eth the wifi connection will only connect me with my local network and I cannot connect to the internet. With the eth connected I could connect to the internet via the wifi but I assume the connection was being redirected via the eth. To get the wifi to reconnect to the internet I use the command sudo ifup --force wlan0
. After the command terminates the wifi can then access the internet normally.
My /etc/network/interfaces is fairly simple, and so makes life a little easier for me. There's really no point in making things overly-complicated when not necessary
Code: Select all
iface lo inet loopback
iface eth0 inet dhcp
iface wlan0 inet dhcp
iface wlan1 inet dhcp
Note there are two wifi entries as I happen to have two wifi modules connected to the Pi I'm using at the moment. One uses an rtl8188cus chip and the other an rtl8188eu chip. The other Pi's have only one wifi module connected but they all behave the same if the eth happens to be connected and I then disconnect it.
I have also tried fixed IPs with similar results and tested with hidden ssid a long time ago but can't remember how that behaved but it was configured using wpa_supplicant.conf. Rather pointless using a hidden ssid these days.
Not sure why you're adding this
Code: Select all
wpa-proto RSN WPA
wpa-pairwise CCMP TKIP
wpa-group CCMP TKIP
into your /etc/network/interfaces file. I would expect your wifi to behave the same wihout them.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra
Please post ALL technical questions on the forum. Please Do Not send private messages.