[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wireless from the command line

> I've had a good look around and still can't work this one out. Does
> anyone know how to configure wifi from the command line? I'm currently
> using wicd, so all my hardware is supported, however, as I rarely start
> X I would prefer to manage wifi connections through the cli.

> I believe I have to use wpasupplicant. Can someone point me to a howto
> that gives me a few examples of the wpasupplicant config and interfacing
> it with /etc/network/interfaces.

> I would like my setup to automatically connect to open networks. It
> should connect to the one with the strongest signal. If that fails then
> it should connect to any wpa networks if they are in range. I would like
> some examples, so I can learn how to tweak the config quickly.

For WPA2, I use these /e/n/i settings
iface wlan0 inet dhcp
wpa-driver wext
wpa-ssid <ssid>
wpa-psk <key>

You can add these but I don't
wpa-ap-scan [1¦2]
wpa-key-mgmt WPA-PSK
wpa-proto RSN
wpa-pairwise CCMP
wpa-group CCMP

Reply to: