4
1
I have a Linux laptop running Ubuntu 12.04. I would like to be able to seamlessly transition from using eth0 to wlan0. When I say "seamlessly", I would like, for example, to be on wifi only with an ssh connection established to somewhere on the internet, plug in my ethernet cable, disconnect my wifi card, and still have my ssh connection established. Similarly, I would like be able to do all of the previous while grabbing a file with curl.
(Another use case: have multiple wifi cards connected to an AP, be able to remove all but one and maintain ssh sessions, etc. The application would be to provide redundancy in the case of unreliable wifi cards)
I am aware of ethernet bonding, is that what I am after in this case?
If this is not possible, would it be possible to explain why?
Note: I have already seen the following: Wired to wireless bridge in Linux Bridging my laptop's wireless and wired adaptors But they appear to be different use cases.
Thanks for the help!
2
Just applies for SSH, but perhaps you should look into mosh. It works pretty much exactly as you say.
– ssmy – 2013-11-21T01:01:15.090I use mosh already :) but I need this to work for other protocols, so that's why I included the curl use case as well! Cheers! – cat pants – 2013-11-21T18:38:54.823
In your linux terminal, run this command: modinfo <your-wifi-driver> | grep ‘depend’. If the output includes mac80211, it means infrastructure mode is supported and hostapd should work. – Prahlad Yeri – 2013-12-07T17:37:24.970
To find <your-wifi-driver>, issue: lspci -k | grep -A 3 -i “network” – Prahlad Yeri – 2013-12-07T17:38:00.927