You are not logged in.

#1 2012-05-20 16:06:36

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 872

[SOLVED] Can't connect to WPA2 network using netcfg 2.8.2-1

Hello, after upgrading to netcfg 2.8.2-1 I can't connect anymore to a WPA2 network. This is what I get:

$ sudo netcfg 2-alice_wlan
 > Using /etc/rc.conf for netcfg settings is deprecated.                                                                                                                            
   Use /etc/conf.d/netcfg instead.                                                                                                                                                  
:: 2-alice_wlan up                                                                  [BUSY]
RTNETLINK answers: No such process
 > Adding gateway 192.168.0.1 failed

This is the wpa config file:

$ cat /etc/network.d/2-alice_wlan 
CONNECTION="wireless"
INTERFACE=wlan0
HOSTNAME="elric"
DESCRIPTION="Alice wlan (NETGEAR)"
ESSID="myssid"
SCAN="yes"
SECURITY="wpa-configsection"
IP="static"
IFOPTS="192.168.0.4 netmask 255.255.255.0 broadcast 255.255.255.255"
GATEWAY="192.168.0.1"
TIMEOUT=15
DNS1=208.67.222.222
DNS2=208.67.220.220
ctrl_interface=/var/run/wpa_supplicant
CONFIGSECTION='ssid="myssid"
         psk=<passkey>'

And this is /etc/conf.d/netcfg:

$ cat /etc/conf.d/netcfg
# Enable these netcfg profiles at boot-up.
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a '@' to background its startup
# Network profiles are found in /etc/network.d
#
#NETWORKS=(menu)

## Specify the name of your wired interface for net-auto-wired
WIRED_INTERFACE="eth0"

## Specify the name of your wireless interface for net-auto-wireless
WIRELESS_INTERFACE="wlan0"

## List of profiles that can be started by net-auto-wireless
## defaults to the list of all wireless profiles
#AUTO_PROFILES="profile1 profile2"

Everything works when I downgrade to netcfg 2.6.8-1. There is still not much infromation on how to configure netcfg 2.8, so I don't really know what to do. Also about the rc.conf deprecation, it is not clear to me what's eventually wrong in my current /etc/conf.d/netcfg...
Thanks

Last edited by snack (2012-06-17 13:58:28)

Offline

#2 2012-05-25 22:28:03

jouke
Member
Registered: 2009-10-14
Posts: 72

Re: [SOLVED] Can't connect to WPA2 network using netcfg 2.8.2-1

Does this problem still exists with 2.8.3?

Two notes about your profile:
IFOPTS: isn't supported anymore and shouldn't be necessary
DNS1/DNS2: isn't supported anymore, use DNS=(1.2.3.4 6.7.8.9) instead

Offline

#3 2012-06-17 13:58:04

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 872

Re: [SOLVED] Can't connect to WPA2 network using netcfg 2.8.2-1

Thanks jouke, I solved my problems by splitting the old IFOPTS into ADDR, NETMASK and BROADCAST, as in the new example config files. I think that this incompatibility with old config files should have been pointed out in the release announcement...

Offline

Board footer

Powered by FluxBB