You are not logged in.
Okay, I was using netcfg2 sucessfully until I did an pacman -Syu update which updated ndiswrapper which I believe may have thrown it off. But anyway, when I run netcfg2 myconfig, all I get is a wireless association error. I don't think there is a problem with my config because it was working before. Any thoughts?
Offline
Hi, I'm having troubles connecting to my network using netcfg2. When I call wpa_supplicant directly it associates quickly with: wpa_supplicant -i ath0 -c /etc/wpa_supplicant.conf. But with netcfg2 its fails with: "wireless association failed" of no error.
I am using atheros / WPA2 / static IP / Hidden SSID, and at the moment I'm typing at a wifi box using the same configuration in debian. I hope some can help me, I must overlook something.
What I tried:
- WPA_OPTS="-w -Dwext -iath0 -c /etc/wpa_supplicant.conf"
- enable broadcast SSID
- somewhere else I connected to an unencrypted network using netcfg2
Thanks!
Profile:
CONNECTION="wireless"
DESCRIPTION="wlan"
INTERFACE=ath0
# Interface Settings (use IFOPTS="dhcp" for DHCP)
IP="static"
IFOPTS="192.168.2.105 netmask 255.255.255.0 broadcast 192.168.2.255"
GATEWAY="192.168.2.1"
# DHCP Example
#IFOPTS=dhcp
#DHCP_TIMEOUT=20 # Default is 10.
#DHCP_OPTIONS="" # Extra arguments for dhcpcd
# DNS Settings (optional)
#DOMAIN=localdomain
DNS1=192.168.2.1
DNS2=
#SEARCH=
# Standard Wireless Settings
ESSID="MYESSID"
SECURITY="wpa-config" # One of wep, wpa, wpa-config, none
# Scans to see if network is available before connecting (recommended)
SCAN="no"
# Time to wait to connect to a network. Default 15.
TIMEOUT=20
# Pass *custom* options to iwconfig. Usually not needed (optional)
#IWOPTS="mode managed essid $ESSID channel 6 key restricted $KEY"
# Any extra arguments for wpa_supplicant
WPA_OPTS="-w -Dmadwifi -iath0"
# For SECURITY='wpa-config' only - filename of a wpa-supplicant config
WPA_CONF="/etc/wpa_supplicant.conf"
# Commands to run at various stages of configuration
#PRE_UP=
#POST_UP=
#PRE_DOWN=
#POST_DOWN="some command"
wpa_supplicant.conf:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root
eapol_version=1
ap_scan=1
#HOME
network={
ssid="MYESSID"
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk=myhexkey
}
Last edited by wezza (2007-12-12 12:20:27)
Offline
Netcfg2 works great for me (ipw2200 with WEP). It fixed a problem I was having with resolv.conf getting overwritten with generic information. Thanks, iphitus.
Offline
Netcfg2 is working great for me. I tried it with madwifi and ndiswrapper (I seem to get a much stronger signal with ndiswrapper rather then madwifi). Both worked great with WPA.
Offline
Hi.
I have a suggestion...sorry if this is already there, I am just not aware of this at the moment.
Is it possible to implement a 'last' profile. The reason is the following: when I suspend or hibernate, I need to restart the network services. Now, of course, if I change the location, a 'last' profile doesnt make sense, but often, I just suspend to save battery. So it would be great if I could just resume again and then the last profile used would be loaded as default...am I making any sense?
Cheers,
Blind
Edit: If I am not making too much sense, please excuse me, that beer and poker killed me last night.
Last edited by Blind (2007-12-17 16:53:31)
Offline
yeah I've got a feature request for that on the bug tracker, will be in next release.
Offline
I'm using a Macbook which has an Atheros chipset [1] and I just bought an Asus WL-600g and I'm trying to connect to the wifi, which is WPA2 with TKIP+AES encryption. I managed to connect using wpa_supplicant but it's a bit odd. In order to connect I have to run wpa_supplicant and then restart the wifi interface. I was unable connect using netcfg2, most likely because of this. It just errors out saying it wasn't able to associate. Before I restart the interface `wpa_cli status` just says DISCONNECTED.
I just put the commands into rc.local and it works:
wpa_supplicant -c /etc/wpa_supplicant.conf -D wext -i ath0 -B
ifconfig ath0 down
sleep 1
ifconfig ath0 up
dhcpcd ath0
wpa_supplicant.conf:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
ssid="MyEssid"
#scan_ssid=0
bssid=00:19:F3:2D:BD:97
proto=RSN
key_mgmt=WPA-PSK
auth_alg=OPEN
psk=hex-string
}
My netcfg2 profile:
CONNECTION="wireless"
INTERFACE=ath0
SCAN="no"
SECURITY="wpa-config"
ESSID="MyEssid"
#KEY="hex-string"
IP="static"
IFOPTS="192.168.1.9 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY="192.168.1.1"
TIMEOUT=10
WPA_CONF="/etc/wpa_supplicant.conf"
[1] 02:00.0 Ethernet controller [0200]: Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter [168c:001c] (rev 01)
Offline
what about adding proxy support? Makes some sense, and saves some trouble on users finding their own way of systematizing the configuration for each network....
Offline
wezza: Missed yours... make WPA_OPTS="" blank, netcfg passes those options all internally.
nDray: I've thought about it, it's not particularly simple though. If a profile is started at boot I could just export proxies from /etc/profile.d/. Any change of proxy then would require a re-login.
Offline
I have a problem with netcfg2. At boot time, it almost always fails to bring up the network. The error is "eth1 is not a wireless interface"... after logging in I have to "sudo netcfg2 profile_name", and it works.
This is with ipw3945, tested on profiles with and without encryption.
Profile:
CONNECTION="wireless"
DESCRIPTION="A simple WEP encrypted wireless connection"
INTERFACE=eth1
SCAN="yes"
TIMEOUT="10"
SECURITY="wep"
ESSID="elv37"
KEY="**********"
IP="dhcp"
Last edited by delaril (2007-12-25 01:28:55)
Offline
Where have you got the ipw3945 daemon? After or before net-profiles? Try moving it well before, the device may not be ready yet when net-profiles starts.
Offline
Where have you got the ipw3945 daemon?
ipw3945d is daemon number three, while net-profiles is number nineteen. All of them except net-profiles is run in the background, though - I can try disabling that for ipw3945d
EDIT: That seemingly did the trick. I should have thought of that earlier
Last edited by delaril (2007-12-25 01:41:27)
Offline
Hi again.
I am just trying out netcfg2 with ipw3945d. Yet another cosmetics that I report here
Your net-profiles daemon script looks a bit messy (sorry ). In any case, there is a stat_busy/success/fail missing at the start level...care if I play around a bit with it?
Cheers,
Blind
Offline
Hey, netcfg2 is working fine for me with zydas zw1211 chip, but I've got a problem when shutting down, rebooting, etc.
When disabling net-profiles, it stays busy for hours and I cannot turn off.
netcfg2 -v
netcfg v2.0.1
any ideas?
Last edited by kiepmad (2007-12-28 11:10:07)
Offline
Hi again.
I am just trying out netcfg2 with ipw3945d. Yet another cosmetics that I report here ;)
Your net-profiles daemon script looks a bit messy (sorry ;)). In any case, there is a stat_busy/success/fail missing at the start level...care if I play around a bit with it?Cheers,
Blind
I considered the stat_busy/fail redundant at the top level, as each profile will succeed/fail on it's own.
patches always welcome, go for it. :) Looking at it now, and you're right -- there's a bit of cruft in there.
Last edited by iphitus (2007-12-28 11:42:25)
Offline
Hey, netcfg2 is working fine for me with zydas zw1211 chip, but I've got a problem when shutting down, rebooting, etc.
When disabling net-profiles, it stays busy for hours and I cannot turn off.netcfg2 -v netcfg v2.0.1
any ideas?
what output at shutdown?
what profiles are active/operating?
post the config files for those profiles on http://pastebin.archlinux.org and link.
Offline
Are there any showstoppers not to move netcfg2 to core?
Offline
Are there any showstoppers not to move netcfg2 to core?
nope. I've submitted the initscripts patch, it's been merged, so i'm just waiting for the initscripts update to hit testing. Things are kinda slow cause of the holiday season.
Offline
Here is my profile.
http://pastebin.archlinux.org/22511
I don't have any output neither at shutdown nor when I try to shut it down manually. It just says [busy] at that's it.
In the deamons.log I can't find any entries about it.
Offline
I can verify kiepmad's problem. I experienced this as well, but I haven't used wifi in a while so I didn't get around to reporting it (woops). My profile was pretty much exactly the same as the one kiepmad posted, so I won't re-post it. I did notice that if I brought the connection down manually before shutting down I didn't have this problem, so it must have something to do with stopping the daemon itself.
Offline
kiepmad: alright... for a start, can you type anything in? does keyboard input appear on the screen?
second.... could you open /usr/lib/network/wireless.subr and replace the wireless_down command with the new one below. Then run the few commands below, keep the output, and shutdown, reproducing the hang. When you get back again, post the output of the commands and the contents of /wireless -- you can safely delete /wireless after.
Sorry for the 'involved' debugging... but i'm not sure whats wrong and am trying to determine at what stage it's hanging.
source /etc/rc.conf; echo ${NETWORKS[@]}
ls /var/run/network/{profiles, interfaces}
and the contents of each of the files in /var/run/network/profiles/
wireless_down() {
PROFILE=$1 NOETHERNETDOWN=$2
echo -n $PROFILE, 1, >> /wireless
if ! checkyesno $2; then
. $SUBR_DIR/ethernet.subr
ethernet_down $1
echo -n 2, >> /wireless
fi
wpa_cli terminate &> /dev/null
echo -n 3, >> /wireless
iwconfig $INTERFACE essid off key off &> /dev/null
echo -n 4, >> /wireless
ifconfig $INTERFACE down
echo 5 >> /wireless
}
Last edited by iphitus (2007-12-29 05:57:29)
Offline
Hey.
here's the output of the different files/commands:
http://pastebin.archlinux.org/22582
When I do init 1, I can't typ anything as early as it trys to stop net-profiles, the console hangs, and I cannot switch to another.
[edit]
As iphitus pointed out on irc, there seems to be a bug in the driver.
Nevertheless, if you experience the same problem with the zd1211rw driver, try the following:
comment out the following line in wireless_down() in /usr/lib/network/wireless.subr
"ifconfig $INTERFACE down"
Last edited by kiepmad (2007-12-29 11:26:27)
Offline
Hi, i am using netcfg2 for my Ethernet connection. It works fine but i get some trouble with my wireless connection.
The module loaded successful and i am able to scan with iwlist scanning.
I am able too to connect with wpa_supplicant. That means
wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant.conf
results in a stable connection.
Here is my wpa_supplicant.conf:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
network={
ssid="wlan"
scan_ssid=0
key_mgmt=WPA-PSK
proto=RSN
pairwise=CCMP
group=CCMP
psk="mypw"
}
But when i try to connect via netcfg2
connection failed and dmesg says:
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:15:0c:24:29:1a
wlan0: RX authentication from 00:15:0c:24:29:1a (alg=0 transaction=2 status=0)
wlan0: authenticated
wlan0: associate with AP 00:15:0c:24:29:1a
wlan0: RX AssocResp from 00:15:0c:24:29:1a (capab=0x451 status=0 aid=1)
wlan0: associated
wlan0: deauthenticate(reason=3)
my netcfg2 profile:
CONNECTION="wireless"
INTERFACE=wlan0
HOSTNAME=myhost
SCAN="no"
SECURITY="wpa-config"
IP="static"
IFOPTS="192.168.0.35 netmask 255.255.255.0 broadcast 192.168.0.255"
GATEWAY="192.168.0.1"
DNS1=192.168.0.1
DNS2=
TIMEOUT=15
WPA_OPTS="-w -Dwext -wlan0"
WPA_CONF="/etc/wpa_supplicant.conf"
have you any idea which could solve my problem?
greets
Last edited by coby (2008-01-02 12:17:07)
Offline
what doe netcfg2 spit out?
try blanking WPA_OPTS and WPA_CONF. The default config is /etc/wpa_supplicant.conf, so you can leave that blank, and netcfg2 passes all the other needed options to WPA... so WPA_OPTS is redundant.
and on top of that, you could just use straight "wpa" mode, rather than wpa-config. See the examples.
Last edited by iphitus (2008-01-02 14:26:00)
Offline
Okay i leave these options blank and changed wpa-config to wpa.
now netcfg2 says:
:: wpa up [BUSY] - Configuration generation failed: ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
Passphrase must be 8..63 characters [FAIL]
so i added KEY="mykey" to my wireless profile
now netcfg2 cant associat
:: wpa up [BUSY] - Wireless association failed. [FAIL]
dmesg
ADDRCONF(NETDEV_UP): wlan0: link is not ready
confusing
Last edited by coby (2008-01-02 15:15:41)
Offline