Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to know a distribution independent way to connect to WPA2 wireless networks.

Do the wireless tools support wpa2? iwconfig and such?

Or is it necessary to use wpa_supplicant? Having to edit a config file every time if changing between many networks is quickly frustrating.

I am aware of tools like wicd, but would like to know if there is a standard way to do this on all distributions without requiring third party software.

share|improve this question

WPA supplicant is quite convenient to configure on debian/ubuntu, thanks to ifupdown integration. What distro are you using?

share|improve this answer

Most distributions currently rely on NetworkManager to manage their network configuration, and wpa_supplicant takes care of the WPA/WPA2 authentication process.

The problem with NetworkManager is that controlling it requires mostly GUI programs which integrate very tightly with the desktop environment you're using.

I've found it useful lately to begin to use cnetworkmanager, a command line interface to NetworkManager, when I don't want to depend on a desktop environment but I want to control my wifi connections practically, or when I want to script wiki connections (especially when using WPA authentication).

share|improve this answer

wpa_supplicant.conf can contain this clause:


which is enough to get it to try and authenticate with most (all?) open wireless APs. Secured APs, on the other hand... I personally haven't tried very hand to figure that one out; as it is, I manually edit wpa_supplicant.conf when I want to add a new secured network. (I use autowifi to do the detection and switching.)

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .