Wireless (WPA) and Linux

The most promising link turned out to lack some information, but in the end I got things to work. Overview of instructions (assumed needed packages are installed, check out the links for more details):

$ wpa_passphrase myssid waylongkeythelongerthebetterbecausewecareaboutsecurityalot

Copy that to /etc/wpa_supplicant.conf (and don’t forget to remove the cleartext password once everything is up and running!)

Now configure your interface:

# iwconfig eth1 essid "myssid"
# ifup eth1
# wpa_supplicant -ieth1 -c/etc/wpa_supplicant.conf

In the first command, the SSID is to be enclosed in double quotes. In my case this did not work out-of-the-shelf, I had to play with it somewhat, but in the end I got up and running.To verify that everything is properly do:

$ iwconfig eth1

And try to ping some sites…

Finally to automate all this (assumes Debian based distro), set up the /etc/network/interfaces file like this:

auto eth1
iface eth1 inet dhcp
pre-up wpa_supplicant -Dwext  -Bw -ieth1 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant

FINAL NOTE: on wpa_supplicant.conf, these parameters might also be useful:


And that should be about it!

Os comentários estão fechados.