You are not logged in.

#1 2006-01-09 11:19:08

Jules
Member
Registered: 2005-12-20
Posts: 27

WPA question [solved]

Hi all,

I've got my wireless connection working although a bit tedious.
Here's what I've got to do.

1) stop the network
./etc/rc.d/network stop
2) start wpa_supplicant
./usr/sbin/wpa_supplicant -Bw -c /etc/wpa_supplicant.conf -i eth1 -D wext
3) start the network
./etc/rc.d/network start

Is there an easy/fast way to start the wireless network?

Thanks in advance,


Cheers,
Jules

Offline

#2 2006-01-09 17:22:15

colnago
Member
From: Victoria, BC
Registered: 2004-03-25
Posts: 438

Re: WPA question [solved]

...try putting the wpa_supplicant line into your /etc/config.d/wireless file.

Offline

#3 2006-01-09 23:10:23

phydeaux
Member
Registered: 2005-06-13
Posts: 68

Re: WPA question [solved]

Arch supports starting wpa_supplicant with its netowork profiles.

http://wiki.archlinux.org/index.php/Wpa_supplicant

andy

[edit]
I just looked through the wiki, and aside from the wpa_supplicant part I've been maintaining the network stuff looks pretty out dated.

If you're not running with the network profiles yet here's a quickie on how to get them started.

Your network profiles are stored in /etc/network-profiles.  The directory should exist if you have updated fairly recnetly and it shoudl contain a template file.  Edit that file to setup the network the way you want it, and save it as a new file.  Then edit your rc.conf to use the network profiles.  Remove your wireless interface from the Interfaces array (delete or prefix it with a ! ) .  Do the same with any gateways or routes associated with the wireless interface.  All that stuff should be configured in the network profile now.  Then uncomment the NET_PROFILES array and put your new profile in it.  If you have more then one profile and you would like to choose between them at boot you can put menu here.  The profiles can be loaded and unloaded indpendanlty of the /etc/rc.d/network script by using the /usr/bin/netcfg script.

[/edit]

Offline

#4 2006-01-10 12:01:38

Eliatamby
Member
Registered: 2005-05-06
Posts: 80

Re: WPA question [solved]

Jules, although phydeaux's way is the most complete, just thought I woudl add that you don't need to restart /etc/network service.  Start wpa_supplicant [options] will initiate the handshake connection.  Once its connected, all you need to do is restart the INTERFACE.

E.g. just ifconfig ath0 down (if ath0 is your wireless if), followed by either dhcpd ath0 or ifconfig ath0 up and you will be connected

Offline

#5 2006-01-10 15:50:01

Jules
Member
Registered: 2005-12-20
Posts: 27

Re: WPA question [solved]

Thanks a lot everyone!

I've got my network connections working like I want them. I used Phydeaux's suggestion with the network profiles, no more waiting for dhcp-timeouts when I'm at work (laptop).

Thanks again,
Jules

Offline

Board footer

Powered by FluxBB