You are not logged in.
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
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
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