My workplace uses 802.11x authentication for their WiFi network, and several times per day I get booted from the network and need to do the following:
- Disable networking
- sudo kill -9
- Restart networking
At this point, the machine will connect to the network just fine. I don't see any weirdness in the syslog, and am running Ubuntu 12.04 (64-bit). What could be wrong?
Best Answer
I had the same problem. It turns out that Network manager is a little overzealous in switching between access points (AP's) when more than one are present. You have two options
Use iwlist to find out how many AP's are there:
Then note the Address of the cell with the highest Quality. That is the AP nearest to you. Then click on Network manager applet, select "Edit Connections" and go to the wifi network listed. There will be a text box titled "BSSID". Paste the Cell address there.
Otherwise, you can ditch network manager altogether and use wpa_supplicant (Network manager uses it under the hood anyway). Just create a configuration file and edit your /etc/network/interfaces this way:
Option 1 is not very useful unless you spend most of your time at workplace in roughly the same location. Option 2 is what I am using now, and it works pretty well. But wifi does not get automatically reconnected after suspend/resume, so you need to run
/etc/init.d/networking/restart
manually.If you like doing things neatly, as an alternative to the generic
killall
command, you can use the WPA specific toolwpa_client
: