You are not logged in.

#26 2007-11-10 00:01:45

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg2 is now in [testing]

Blind wrote:

Just cosmetics: if connection is already up, and I type
netfcfg2 blah
again, then I get something like

> netcfg2 blah 
              - blah already connectedroot@chucks: /etc/network.d

that is, there is no 'CR' there...
Other than that, prism54 works nice with WEP (couldn't test WPA), Wiki is updated.
Cheers

Great smile I'll work on the cosmetics now.

James

Offline

#27 2007-11-10 04:18:04

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg2 is now in [testing]

cosmetics + spaces issue fixed in 2.0.0, now in testing.

James

Offline

#28 2007-11-10 11:10:01

WhiteMagic
Member
Registered: 2007-03-01
Posts: 85

Re: netcfg2 is now in [testing]

I tested the scripts with my atheros card and it worked for all cases (WPA, WEP, no encryption). The fix iphitus proposed for ESSIDs containing spaces worked for me when I tested it.
The only thing that didn't work for me was the scanning directive. I had to disable it to get a reliable association, but I suppose that this is a problem of my card as it takes a long time (60+ seconds sometimes) to get any results from "iwlist ath0 scan".

Offline

#29 2007-11-10 14:22:24

steve-e
Member
Registered: 2007-10-03
Posts: 37

Re: netcfg2 is now in [testing]

I haven't tested the script, yet. What would I have to enter to make the default Fritzbox SSID work? Is it fine by just adding a slash before the exclamation mark?

Fritz!Box Fon Wlan XXX

Last edited by steve-e (2007-11-10 14:23:49)

Offline

#30 2007-11-10 14:43:10

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg2 is now in [testing]

probably will work if you just do:
ESSID="Fritz!Box Fon Wlan XXX"
but if that doesnt, then yeah, try with a \ before !.

James

Offline

#31 2007-11-12 18:13:31

fingerpicker
Member
From: germany
Registered: 2007-01-11
Posts: 14

Re: netcfg2 is now in [testing]

hey ho, i get the following:

[root@waudele]# netcfg2 home
:: home up [BUSY}
Error, eth0: timed out
               - DHCP IP lease attempt failed [FAIL]

with the following configuration:

CONNECTION="wireless"
DESCRIPTION="myessid"
INTERFACE=eth0
SCAN="yes"
SECURITY=""
ESSID="tschurifetzn"
KEY=""
IP="dhcp"

the odd thing is that the nearly same config file (diffrent essid and description) works with our university network
maybe a problem cause router got the ip with 142.23.0.100 ?? (shouldn't make problems normally, should'nt it?)

thx 4 help

edit: just tried it with 192.168.0.1 as router ip, no chg...

Last edited by fingerpicker (2007-11-12 18:43:28)

Offline

#32 2007-11-19 11:57:58

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg2 is now in [testing]

the problem is your SECURITY="" isn't set. you need to set it to something, be it none, wep, wpa, or wpa-config.

netcfg 2.0.1 is up, and it's in [testing].
-> Fixed the DNS bug which was accidentally re-opened in 2.0.0
-> Fixed some test related issues throughout the project

http://projects.archlinux.org/git/?p=ne … ;a=summary

James

Offline

#33 2007-11-22 09:23:04

buddabrod
Member
From: Germany
Registered: 2007-02-25
Posts: 220

Re: netcfg2 is now in [testing]

Hi there, i started using netcfg2, too.
when using my wpa config, it doesn work.. use of wpa_supplicant & dhcpcd does work.
Maybe i made just a stupid error..

/etc/network.d/home

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa"
ESSID="routerblubb"
KEY="mykey"
IP="static"
IFOPTS="192.168.1.23 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY="192.168.1.1"
DNS1=192.168.1.1
TIMEOUT=10
netcfg2 home
:: home up  - Wireless association failed.                                                                           [FAIL]

dmesg output

wlan0: associate with AP 00:0f:66:a7:2c:8d
wlan0: RX AssocResp from 00:0f:66:a7:2c:8d (capab=0x431 status=0 aid=1)
wlan0: associated
wlan0: switched to short barker preamble (BSSID=00:0f:66:a7:2c:8d)
wlan0: RX deauthentication from 00:0f:66:a7:2c:8d (reason=15)
wlan0: deauthenticated
wlan0: authenticate with AP 00:0f:66:a7:2c:8d
wlan0: RX authentication from 00:0f:66:a7:2c:8d (alg=0 transaction=2 status=0)
wlan0: authenticated
wlan0: associate with AP 00:0f:66:a7:2c:8d
wlan0: RX ReassocResp from 00:0f:66:a7:2c:8d (capab=0x431 status=0 aid=1)
wlan0: associated
wlan0: switched to short barker preamble (BSSID=00:0f:66:a7:2c:8d)
iwl4965: Error sending REPLY_RXON_ASSOC: Already sending a host command
wlan0: deauthenticate(reason=3)
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:0f:66:a7:2c:8d
wlan0: authenticate with AP 00:0f:66:a7:2c:8d
wlan0: RX authentication from 00:0f:66:a7:2c:8d (alg=0 transaction=2 status=0)
wlan0: authenticated
wlan0: associate with AP 00:0f:66:a7:2c:8d
wlan0: RX AssocResp from 00:0f:66:a7:2c:8d (capab=0x431 status=0 aid=1)
wlan0: associated
wlan0: switched to short barker preamble (BSSID=00:0f:66:a7:2c:8d)
wlan0: RX deauthentication from 00:0f:66:a7:2c:8d (reason=15)
wlan0: deauthenticated
wlan0: authenticate with AP 00:0f:66:a7:2c:8d
wlan0: RX authentication from 00:0f:66:a7:2c:8d (alg=0 transaction=2 status=0)
wlan0: authenticated
wlan0: associate with AP 00:0f:66:a7:2c:8d
wlan0: RX ReassocResp from 00:0f:66:a7:2c:8d (capab=0x431 status=0 aid=1)
wlan0: associated
wlan0: switched to short barker preamble (BSSID=00:0f:66:a7:2c:8d)
iwl4965: Error sending REPLY_RXON_ASSOC: Already sending a host command
wlan0: deauthenticate(reason=3)

Thanks for any reply!

Edit:

netcfg2 -v
netcfg v1.99.32

That is the latest version in [testing] here.

Last edited by buddabrod (2007-11-22 09:24:42)

Offline

#34 2007-11-22 12:22:33

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg2 is now in [testing]

buddabrod wrote:

Hi there, i started using netcfg2, too.
when using my wpa config, it doesn work.. use of wpa_supplicant & dhcpcd does work.
Maybe i made just a stupid error..

/etc/network.d/home

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa"
ESSID="routerblubb"
KEY="mykey"
IP="static"
<snip>
TIMEOUT=10

for a start, you mention dhcpcd above, but you use static in your profile.  Double check all info, key and everything (already had one person who mistyped their key... i've done it myself too). Try extending the timeout.

If that doesnt work, add WPA_OPTS="-dd" and put the output on http://pastebin.archlinux.org and link it here.

Edit:

netcfg2 -v
netcfg v1.99.32

That is the latest version in [testing] here.

http://archlinux.org/packages/search/?q=netcfg
v2.0.1 is in testing... try another mirror.

James

Offline

#35 2007-11-22 17:14:35

buddabrod
Member
From: Germany
Registered: 2007-02-25
Posts: 220

Re: netcfg2 is now in [testing]

for a start, you mention dhcpcd above, but you use static in your profile.  Double check all info, key and everything (already had one person who mistyped their key... i've done it myself too). Try extending the timeout.

Sorry, i tried both dhcp and static. Neither worked.

If that doesnt work, add WPA_OPTS="-dd" and put the output on http://pastebin.archlinux.org and link it here.

I'll try that.

v2.0.1 is in testing... try another mirror.

James

I should have mentioned that i am using Arch64.
ftp://ftp.archlinux.org/testing/os/x86_64

There is nothing more recent.

I'm getting kind of jealous how well i386 is cared.. and how arch64 is not.. xD

Offline

#36 2007-11-24 22:47:41

sash
Member
Registered: 2005-10-16
Posts: 155

Re: netcfg2 is now in [testing]

Thanks for netcfg2--it offers a smiple and reliable way to connect to my AP and others :-)

My hw is a broadcomm card with ndiswrapper, my AP uses WPA2 with AEP.

Is it possible to connect to an AP without replacing the nameservers already listed in /etc/resolv.conf?

Thanks in advance.

Offline

#37 2007-11-25 10:05:49

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: netcfg2 is now in [testing]

> Is it possible to connect to an AP without replacing the nameservers already listed in /etc/resolv.conf?

It's independent from netcfg2, but have a look at /etc/conf.d/dhcpcd and the dhcpcd manpage (-R option).


1000

Offline

#38 2007-11-25 21:42:27

sash
Member
Registered: 2005-10-16
Posts: 155

Re: netcfg2 is now in [testing]

byte wrote:

> Is it possible to connect to an AP without replacing the nameservers already listed in /etc/resolv.conf?

It's independent from netcfg2, but have a look at /etc/conf.d/dhcpcd and the dhcpcd manpage (-R option).

Thanks, that is what I have been using when connecting with iwconfig and dhcpcd. I just have to find a way to make netcfg2 do the same when invoking dhcpcd.

Offline

#39 2007-11-25 21:56:14

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: netcfg2 is now in [testing]

Hi, I am unable to do my WPA wireless connection here with the wpa-config method. It works fine if I use the wpa method, but I would prefer to write my key in hex mode in wpa-supplicant.conf instead that openly in network.d/wpa.

The following is the working config with the wpa method:
I put this in the config:

CONNECTION="wireless"
INTERFACE=eth1
SCAN="yes"
SECURITY="wpa"
ESSID="<myessid>"
KEY="<mypasskey>"
IP="dhcp"
DHCP_OPTIONS="-N -R"

The following is the config with the wpa-config method:

CONNECTION="wireless"
INTERFACE=eth1
SCAN="yes"
SECURITY="wpa-config"
ESSID="<myessid>"
IP="dhcp"
DHCP_OPTIONS="-N -R"
WPA_CONF="/etc/wpa-supplicant.conf"

The output is "wpa_supplicant did not start, possible configuration error". There is no configuration error in wpa-supplicant.conf, because it works fine when I call directly wpa_supplicant. It includes the hex psk obtained by wpa_passphrase and it is very plain:

network={
       ssid="<myessid>"
       psk=<myhexpasskey>
}

I tried to put SCAN="no", but there is no difference. 
Thanks for any help.


Mortuus in anima, curam gero cutis

Offline

#40 2007-11-25 22:17:54

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: netcfg2 is now in [testing]

Actually, also if I copy the config in /tmp used by wpa_supplicant when netcfg2 resorts to the wpa method, the wpa-config method fails in the same way.


Mortuus in anima, curam gero cutis

Offline

#41 2007-11-25 23:37:12

sash
Member
Registered: 2005-10-16
Posts: 155

Re: netcfg2 is now in [testing]

Cool, the

DHCP_OPTIONS="-R"

option has helped me keep the nameservers in /etc/resolv.conf

Offline

#42 2007-11-26 11:00:16

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 359

Re: netcfg2 is now in [testing]

Hello,

I spent a few hours in trying to get netcfg2 up and running. Here are my findings:

I have a laptop with a rt2500 chip. I use my laptop at different locations so I have set NET_PROFILES=(menu) in rc.conf to be able to manage wireless, no net at all and wired connections. For the rt2500 I used a small script to bring the interface up and get me connected since I could not get a working network profile with the 'normal' above mentioned method.

It looks like this:

#!/bin/bash
#

ifconfig ra0 up
iwconfig ra0 essid myessid mode Managed
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=TKIP
iwpriv ra0 set WPAPSK="mykey"
dhcpcd ra0

# end of file

I need to bring ra0 explicitely up and send some information via iwpriv. Is there a chance to get this into netcfg2?

Harvey


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

#43 2007-11-26 15:18:11

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: netcfg2 is now in [testing]

netcfg2 does not handle iwpriv commands. If you intend to continue with rt2500, you will need to keep your custom script. I had a similar arrangement when I was using rt73.

Alternatively, you could use the rt2x00 driver, which is the successor to rt2500/rt73/etc, and works as expected with netcfg2.

Offline

#44 2007-11-26 17:08:46

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 359

Re: netcfg2 is now in [testing]

tomk,
thank you for your quick answer.

I changed the kernel module to rt2x00 and in fact WPA works as expected with netcfg2. IIRC I didn't use the rt2x00 module in the beginning because of freezes in the wireless interface. But that was some time ago. I'll give it a try once again.

Harvey


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

#45 2007-11-26 20:55:41

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg2 is now in [testing]

patroclo7: what does netcfg2 say? I tried to make error messages a bit more useful with netcfg2. Also, if you don't want your key easily readable, you can use permissions -- chmod 600 on your profiles should keep everyone out.

buddabrod: I'll start on Arch64 sometime in the next few months, just have to install it. Also, your problem might be related to the wpa problems some have had with one of the recent kernels.

Harey: Seeing as the rt2500 driver will be superseded by rt2x00 in the near future I decided it wasnt worth implementing. I have an rt2500 based machine here and have used rt2x00 for ages now.

sash: you could also specify your DNS servers in the network profile. but what you did works too smile

Offline

#46 2007-11-26 22:31:22

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: netcfg2 is now in [testing]

Netcfg2 says exactly what I have reported, that is "wpa_supplicant did not start, possible configuration error". I do not know if this message refers to a possible configuration error in the profile or in /etc/wpa-supplicant.conf (in this second case I think that it is a bug in netcfg2, because wpa_supplicant works fine with that configuration if I run wpa_supplicant directly). Or am I misunderstanding something and is there a way to get a more detailed error message?


Mortuus in anima, curam gero cutis

Offline

#47 2007-11-26 22:56:15

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: netcfg2 is now in [testing]

I am an idiot. Ban me from this forum.

WPA_CONF="/etc/wpa-supplicant.conf"

But the config file was /etc/wpa_supplicant.conf.
I am so idiot.


Mortuus in anima, curam gero cutis

Offline

#48 2007-11-27 09:22:12

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg2 is now in [testing]

patroclo7 wrote:

I am an idiot. Ban me from this forum.

WPA_CONF="/etc/wpa-supplicant.conf"

But the config file was /etc/wpa_supplicant.conf.
I am so idiot.

we've all done it too. I mistyped a wireless key once and spent a good half hour going "wtf is wrong with my scripts"

Offline

#49 2007-11-27 13:24:04

iggy
Member
From: Germany, L.E. - Leipzig
Registered: 2004-10-17
Posts: 367

Re: netcfg2 is now in [testing]

hello!

i have one problem with the new script. i can start it, it says [DONE] (wpa_supplicant successfully connects to the ap), but i don't get an ip. i have to start dhclient manually to get one.

here is my script:

CONNECTION="wireless"
DESCRIPTION="wlan @ uni"
INTERFACE=wlan0
HOSTNAME=laptop
GATEWAY=
IFOPTS="dhcp"
DOMAIN=localdomain
DNS1=
DNS2=
SEARCH=
ESSID="802.1X"
SECURITY="wpa-config" # One of wep, wpa, wpa-config, none
SCAN="YES"
TIMEOUT=20
IWOPTS="mode managed essid $ESSID channel 8"
WPA_OPTS="-Dwext"
WPA_CONF="/etc/wpa_supplicant.conf"
PRE_UP=
POST_UP="echo 1 > /sys/devices/platform/asus-laptop/wlan"
PRE_DOWN=
POST_DOWN="echo 0 > /sys/devices/platform/asus-laptop/wlan"

somebody has an idea?

mfg iggy


sorry for my bad english smile

Offline

#50 2007-11-27 19:33:36

zukka
Member
From: Bologna Italy
Registered: 2006-06-27
Posts: 26

Re: netcfg2 is now in [testing]

works great with zd1211rw (wpa) !
good job smile

Offline

Board footer

Powered by FluxBB