You are not logged in.

#1 2008-03-28 17:53:23

delmonico
Member
Registered: 2004-06-27
Posts: 82

Can't get netcfg2 to work

hey guys, I can't get netcfg2 to work on my machine... really annoying upgrade hmm check this:

[network.d]% diff examples/wpa.example home
1,2c1,2
< CONNECTION="wireless"
< INTERFACE=wlan0
---
> CONNECTION="home"
> INTERFACE=eth1
5,6c5,6
< ESSID="mynetwork"
< KEY="SomePasskey"
---
> ESSID="Lebowski"
> KEY="foobar"
[network.d]% sudo netcfg2 home
 > home is not a valid connection, check spelling or look at examples

Any ideas? Also, why do I have to specify CONNECTION="foo"? the filename is enough to get the name, no?
chris

Last edited by delmonico (2008-03-28 17:54:41)

Offline

#2 2008-03-28 18:05:40

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Can't get netcfg2 to work

I'm not at my machine that has netcfg2 but I'm pretty sure CONNECTION variable should stay as "wireless"

Offline

#3 2008-03-29 07:42:52

delmonico
Member
Registered: 2004-06-27
Posts: 82

Re: Can't get netcfg2 to work

Ah, it specifies a connection type, not the name then smile Thanks

Offline

#4 2008-03-29 10:54:59

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

Re: Can't get netcfg2 to work

Your existing profile from the original netcfg does not work with netcfg2. Best option IMO is to take the file from /etc/network.d/examples that is closest to your required setup, copy it to /etc/network.d/<your_profile_name>, and edit it as required. The Network Profiles wiki page is useful also.

Offline

#5 2008-03-31 23:35:31

skioppetto
Member
Registered: 2007-02-08
Posts: 24

Re: Can't get netcfg2 to work

I can't get work netcfg2... sad

if I run

iwconfig wlan0 essid SpeedTouch5F3851 enc open s:LesPiTTareL

it works great, I can connect to my wireless network but...

if I configure my /etc/network.d/celadina in this way:


CONNECTION="wireless"
DESCRIPTION="Connessione wireless casa Bergamo"

INTERFACE=wlan0
ESSID=SpeedTouch5F3851
KEY=LesPiTTareL
SECURITY=wep

IP="static"
IFOPTS="192.168.1.70 netmask 255.255.255.0"
GATEWAY=192.168.1.254

and running

netcfg2 celadina

I get this error message

:: celadina up  - Could not set wireless configuration                   [FAIL]
 [root@Arials skioppetto]#  "Set Encode" (8B2A) :
    SET failed on device wlan0 ; Invalid argument.

I think the error is in SECURITY but I can0t find a solution... I've tried also with IWOPTS and if I don't
define SECURITY it doesn't give any errors but it can't connect becouse key remains off

I use rt61 wireless module; when I connect trough the first way I don't get any wep modules loaded even if it works...
I think the problem could be the kernel module.

What do you think about?

Offline

#6 2008-04-02 05:54:21

skioppetto
Member
Registered: 2007-02-08
Posts: 24

Re: Can't get netcfg2 to work

up

Offline

#7 2008-04-02 07:08:48

pestilence
Member
From: Athens
Registered: 2008-03-16
Posts: 53
Website

Re: Can't get netcfg2 to work

I changed in file:
/usr/lib/network/wireless.subr

Line 135
From:

WEP_OPTS="mode managed essid \"$ESSID\" key open $KEY"

To:

WEP_OPTS="mode managed essid \"$ESSID\" key open \"s:$KEY\""

And worked for me...I was having the same problem smile

Last edited by pestilence (2008-04-02 07:09:28)

Offline

#8 2008-04-02 08:53:31

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

Re: Can't get netcfg2 to work

It'd be better to do KEY="s:LesPiTTareL" rather than edit wireless.subr

Offline

#9 2008-04-02 09:25:51

pestilence
Member
From: Athens
Registered: 2008-03-16
Posts: 53
Website

Re: Can't get netcfg2 to work

Didn't notice that it works like that! big_smile big_smile damn sad I feel wierd now roll

Last edited by pestilence (2008-04-02 09:26:13)

Offline

Board footer

Powered by FluxBB