You are not logged in.

#1 2009-08-27 00:47:02

lautarop
Member
Registered: 2009-08-27
Posts: 3

netcfg2 -r gives me "wireless association failed "

Hey guys, I'm able to connect at boot, but whenever I try to reconnect using

sudo  netcfg2 -r mynetwork

I get the "wireless association failed " message.



i tried all the tips on the wiki, so I'm posting here.
Any Idea?

my profile:

CONNECTION="wireless"
DESCRIPTION="A simple WEP encrypted wireless connection"
INTERFACE="wlan0"
SECURITY="wep"
ESSID="bla"
KEY="bla"
IP="dhcp"

Offline

#2 2009-08-27 01:23:41

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: netcfg2 -r gives me "wireless association failed "

What's your wireless card? Do

lspci | grep Wireless

I have an Intel 5100 AGN, and it sometimes gets "stuck." Only thing I can do to get it unstuck is to reload the driver:

sudo modprobe -r iwlagn
sudo modprobe iwlagn

Here's another thread where this came up.

Perhaps your problem is different, and easier to solve. It would help if you could figure out a way to reliably take down your connection and bring it back up by hand---using ifconfig and iwconfig, for example. Then we could compare what works for you with what netcfg is doing and try to get netcfg to be less fragile in situations like yours.

Here's what netcfg would do by default. To raise network:

iwconfig wlan0 mode managed
ifconfig wlan0 up
iwconfig wlan0 essid "blahblah" key "blahblah"
dhcpcd -qL -t 10 -C resolv.conf wlan0

To close network:

dhcpcd -qx wlan0
ifconfig wlan0 0.0.0.0
ifconfig wlan0 down
iwconfig wlan0 essid off key off

You can use that as a a starting point.

Offline

#3 2009-08-27 03:01:09

lautarop
Member
Registered: 2009-08-27
Posts: 3

Re: netcfg2 -r gives me "wireless association failed "

Hey thx for posting!

when I do lspci I don't have any wireless card listed, but I get the following:

01:01.0 Network controller: RaLink RT2561/RT61 rev B 802.11g

Ok so I tried to manually disconnect and reconnect.

I was able to bring it down, but the last step of bringing it up failed:

dhcpcd -qL -t 10 -C resolv.conf wlan0
dhcpcd: timed out

and also

dhcpcd wlan0
dhcpcd: version 5.0.6 starting
dhcpcd: wlan0: waiting for carrier
dhcpcd: timed out

what should I try to check now?

Last edited by lautarop (2009-08-27 03:05:00)

Offline

#4 2009-08-27 10:02:36

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: netcfg2 -r gives me "wireless association failed "

Hm, I don't know. Try adding "--reboot 0" to the dhcpcd line. Also try increasing the timeout (use "-t 30" instead of "-t 10")... Also try removing the
"-q", then you'll get more diagnostic output.

Offline

#5 2009-09-01 17:28:00

lautarop
Member
Registered: 2009-08-27
Posts: 3

Re: netcfg2 -r gives me "wireless association failed "

Profjim wrote:

Hm, I don't know. Try adding "--reboot 0" to the dhcpcd line. Also try increasing the timeout (use "-t 30" instead of "-t 10")... Also try removing the
"-q", then you'll get more diagnostic output.

thx for the answer.

I tried that, but stilll, got the same response hmm

Offline

Board footer

Powered by FluxBB