You are not logged in.

#1 2009-02-22 21:44:53

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

[solved] manually wpa-wlan works, netcfg won't

hi there,
i'm new to arch linux, and actually trying to connect to my wpa-wlan with netcfg...

when i boot my system, wlan works fine with:

sudo iwconfig wlan0 essid "my connection"
sudo wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
sudo dhcpcd wlan0

and i'm able to connect to the internet.

Trying to connect with netcfg2 doesnt work:

sudo netcfg2 default.conf
:: default.conf up
wlan0: timed out
                          - DHCP IP lease attempt failed

(the same with netcfg instead of netcfg2)

i'm wondering what i did wrong. these are my configuration files:

default.conf (Path: /etc/network.d/default.conf)

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa2"
ESSID="my connection"
KEY="mykey"
IP="dhcp"
TIMEOUT=30
DHCP_TIMEOUT=30

also tried SCAN="no", same error

wpa_supplicant.conf (Path: /etc/wpa_supplicant.conf)

ctrl_interface=/var/run/wpa_supplicant
         eapol_version=1
         ap_scan=1
network={
         ssid="my connection"
         scan_ssid=1
         key_mgmt=WPA-PSK
         psk=687.......c05
}

any ideas?

Last edited by DaStevo (2009-02-22 22:23:39)

Offline

#2 2009-02-22 21:57:07

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: [solved] manually wpa-wlan works, netcfg won't

If you're using custom wpa_supplicant.conf file then you should use:

SECURITY=wpa-config

and define the path to the wpa_supplicant.conf file:

WPA_CONF=/etc/wpa_supplicant.conf

I'm not hundred percent sure, but I don't think you need KEY and ESSID variables.

Offline

#3 2009-02-22 22:22:51

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

Re: [solved] manually wpa-wlan works, netcfg won't

thanks a lot!

SECURITY=wpa-config
WPA_CONF=/etc/wpa_supplicant.conf

did the thing....

also deleted key and essid variable, they weren't necessary

Offline

Board footer

Powered by FluxBB