You are not logged in.

#1 2009-04-19 13:17:56

robrene
Member
Registered: 2009-04-16
Posts: 168

netcfg not automatically connecting to my uni network

Hey all

I'm using netcfg to control the wireless interface on my laptop. At home, we have a simple WEP connection, and netcfg-auto-wireless is able to find the correct ESSID and profile and then connect me to the network.

In my university, we use a wpa-enterprise connection. If I connect to it using

$ ifconfig wlan0 up
$ iwlist wlan0 scan
$ iwconfig wlan0 essid dukath-fgx
$ wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf
// wait a bit
$ dhcpcd wlan0

everything works and I get assigned an IP and I'm able to use the network. However, using netcfg-auto-wireless doesn't connect me to the right essid to start with and also times out on dhcp (obviously). My config files are posted below (sensitive data x'ed out). What am I doing wrong? How can I make it so netcfg-auto-wireless (invoked while booting) connects me to the correct network?



/etc/network.d/home.conf

CONNECTION="wireless"
DESCRIPTION="Home network"
INTERFACE=wlan0
SCAN="no"
SECURITY="wep"
ESSID="WLANTHUIS"
KEY="xxxx"
IP="dhcp"
QUIRKS=(prescan preessid)

/etc/network.d/uni.conf

CONNECTION="wireless"
DESCRIPTION="Uni network"
INTERFACE=wlan0
SCAN="no"
#SECURITY="wpa"
#KEY=
HOSTNAME="dukath-fgx"
ESSID="dukath-fgx"
IP="dhcp"
USEWPA="yes"
WPAOPTS="-B -D wext"
QUIRKS=(prescan preessid wpaessid)

/etc/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel

network={
    id_str="uni"
    ssid="dukath-fgx"
    key_mgmt=WPA-EAP
    identity="xxxx"
    password="xxxx"
}

Last edited by robrene (2009-04-19 13:24:03)


smile neutral sad big_smile yikes wink hmm tongue lol mad roll cool

Offline

#2 2009-04-21 00:03:20

FunkNapkin
Member
From: Québec, Canada
Registered: 2009-01-19
Posts: 21

Re: netcfg not automatically connecting to my uni network

You should verify if netcfg connects you to the network when you manually specify the config file to use.

Anyway, I connect at my school's network using an identical wpa_supplicant.conf. Here's my netcfg file, you could try it and see if it works:

CONNECTION="wireless"
DESCRIPTION="School"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa-config"
ESSID="CSFnet"
IP="dhcp"
TIMEOUT=20

Arch64, Openbox & Awesome3

Offline

#3 2009-04-22 18:08:58

robrene
Member
Registered: 2009-04-16
Posts: 168

Re: netcfg not automatically connecting to my uni network

Using SECURITY="wpa-config" fixed it, thanks for the tip!


smile neutral sad big_smile yikes wink hmm tongue lol mad roll cool

Offline

Board footer

Powered by FluxBB