You are not logged in.

#1 2009-02-20 03:14:44

zonkee
Member
Registered: 2009-02-20
Posts: 4

Wireless network connect on boot

I can successfully connect to my wlan with:

wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
dhcpcd wlan0

so my wpa_supplicant.conf is correct.
Now I want to automatically connect on boot. I think I have to do this with another config file (I don't know why this is so complicated) named /etc/network.d/wlan0.conf:

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa-conf"
ESSID="megainternet"
IP="dhcp"
WPA_CONF="/etc/wpa_supplicant.conf"
USEWPA="yes"
WPAOPTS="-Dwext"
TIMEOUT=20

When I then do a "netcfg wlan0.conf" it says "DONE" after a while but it doesn't connect to the specified access point. It uses another one named "MONZOON", but not my "megainternet"

Offline

#2 2009-02-20 14:20:16

stringchopper
Member
Registered: 2009-02-19
Posts: 38

Re: Wireless network connect on boot

see, http://wiki.archlinux.org/index.php/Netcfg

you might try a QUIRKS=(wpaessid)

wpaessid -  (same as preessid, but used before wpa_supplicant).

Can you set scan="no", since you're using the network supplied by wpa_supplicant.conf?

Brian


Regards,
Brian

Offline

#3 2009-02-21 02:10:35

zonkee
Member
Registered: 2009-02-20
Posts: 4

Re: Wireless network connect on boot

After setting DHCP_TIMEOUT=40 and TIMEOUT=40 it works. It's not really a solution as with the wpa_supplicant command it connects after 5 seconds. So I'm considering adding the command to the start script rather than using the buggy netcfg

Offline

#4 2009-02-21 03:48:56

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Wireless network connect on boot

zonkee wrote:

After setting DHCP_TIMEOUT=40 and TIMEOUT=40 it works. It's not really a solution as with the wpa_supplicant command it connects after 5 seconds. So I'm considering adding the command to the start script rather than using the buggy netcfg

Looks like it's not netcfg, but incorrect configuration files, both your netcfg profile and wpa_supplicant.conf seem to have errors.

Please read the wiki, there are detailed, step by step, easy to understand instructions: http://wiki.archlinux.org/index.php/Network_profiles

Also please try using one of the example configurations in /etc/network.d/examples. You do not need to use wpa-config and /etc/wpa_supplicant.conf if your network is a basic home WPA network.

A simple config like this will probably do what you need

CONNECTION="wireless"
INTERFACE=wlan0
SECURITY="wpa"
ESSID=megainternet
KEY="YOUR WIRELESS KEY"
IP="dhcp"

Then you can connect with a simple

netcfg profilename

Where profilename is the name of your config file, for example "netcfg homenetwork" for /etc/network.d/homenetwork

Last edited by iphitus (2009-02-21 03:51:28)

Offline

#5 2009-03-06 03:11:19

print
Member
Registered: 2007-02-27
Posts: 174

Re: Wireless network connect on boot

doesn't work iphitus.  same problem here.


% whereis whatis whence which whoami whois who

Offline

Board footer

Powered by FluxBB