Although my system is already ubuntu7.10, although ndiswrapper is installed smoothly, wireless networks are used well at home. However, the WPA enterprise wireless network in the school has never been successfully set up, and the results were not good for one night and one morning.
During the processing, the original home network could not be connected, and last night it was quite depressing.
After being confused, I finally realized that wireless is set based on WPA supplicant. WPA supplicant has a configuration file:/etc/wpa_supplicant/wpa_supplicant.conf. The basic structure is:
network={
ssid="example"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
priority=2
}
This is what is mentioned in many posts, the configuration file for wireless networks.
In the current version of ubuntu, WPA Supplicant is installed by default, and gnome network manager can be integrated to manage wireless networks. You can see the link to WPA Supplicant in the/etc/network subdirectory.
My problem is that the manager does not have the WPA Enterprise (WPA-EAP) option, only WEP, WPA (personal ).
I began to work hard to set up the configuration file and install wpa_gui or something. The school teacher has an exaggerated page to introduce this:
Http://www.cs.bham.ac.uk /~ Axs/Laptop/WPA/
After that, it was still unsuccessful. The following error is returned: Jing @ Jing :~ $ Sudo service networking restart
* Reconfiguring network interfaces... ignoring unknown interface eth0 = eth0.
Ignoring unknown interface eth1 = eth1.
Ignoring unknown interface eth2 = eth2.
Ignoring unknown interface ATH0 = ath0.
Wlan0: Error while getting interface flags: no such device
Error for wireless request "set encode" (8b2a ):
Set failed on device wlan0; no such device.
Error for wireless request "set Essid" (8b1a ):
Set failed on device wlan0; no such device.
There is already a PID file/var/run/dhclient. wlan0.pid with PID 134519120
Internet Systems Consortium DHCP Client v3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Siocsifaddr: no such device
Wlan0: Error while getting interface flags: no such device
Wlan0: Error while getting interface flags: no such device
Bind socket to interface: no such device
Failed to bring up wlan0.
[OK]
Delete/var/run/dhclient. wlan0.pid, restart the system, and then restart the network service to connect to the home network. (Sometimes, there is a strange phenomenon that I have failed to restart again and again. Rename wpa_supplicant.conf to an irrelevant name, restart the machine, and restart the network. Then, change wpa_supplicant.conf and restart the machine twice. The machine can be correctly connected. Preemptible ?? Where is the problem ?)
In this step, I have spent at least 10 hours setting up this pile of things and searching for information (this is not the case !!! To clearly set the relationships between them, we should not confuse them. Next I plan to disable gnome's network manager and use wpa_supplicant to set it ).
I suspect that WPA and gnome Network Manager are not well integrated, so I will directly use wpa_gui to manage them.
- Disabling NetworkManager
According to [www] This bug here's how to disable network manager without uninstalling it:
Stop Network Manager
Sudo/etc/dbus-1/event. d/26 networkmanagerdispatcher stop
Sudo/etc/dbus-1/event. d/25 NetworkManager stop
Create two files with only the word 'exit 'in them. These files are:
/Etc/default/NetworkManager
/Etc/default/networkmanagerdispatcher
- Remove gnome Network Manager
- Stop the bootup service of networking
Wpa_gui is used for setting. No response is returned. In addition, wpa_gui cannot save the settings, resulting in slow response. In this case, there may be a problem that the basic services of the network cannot be connected. wireless networks certainly cannot be connected.
Restart the network service and run wpa_gui. The error message is invalid.
Make the last attempt:
I found that there is a WPA-ifupd $, which may be related to WPA and set it to start, with no effect.
Discard further attempts on Wireless Settings. goodby, my lover.
Later versions of ubuntu are coming to be released. I have finally completed the link settings: Some network connection annotations.