Author Topic: Re: Wireless card sees the router but won't connect. <SOLVED>  (Read 2866 times)

Online Rudge

  • Hero Member
  • *****
  • Posts: 9779
  • I'm Just A Dog.
Re: Wireless card sees the router but won't connect. <SOLVED>
« on: January 07, 2011, 08:35:18 PM »
I have a RalinkRT2561/RT61 802.11g PCI wireless card in a box running a fully updated LXDE.  When I look at the wireless connections, I can see all of the networks in my hood including mine. When I try to configure the network connection, everything seems fine until I actually try to connect and then, I just get "Connection Failed"  ???

What the crap?

I don't know what information to give in order to diagnose this issue so if someone would walk me through what info to supply, I would be most grateful.

Thanks!
« Last Edit: January 10, 2011, 03:45:42 PM by Rudge »


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline T6

  • Super Villain
  • ******
  • Posts: 19051
  • xmas is comming!
Re: Wireless card sees the router but won't connect.
« Reply #1 on: January 07, 2011, 08:38:26 PM »
are you using windows driver for that card or linux driver?

is that network wep or wpa?

how strong is the signal?
« Last Edit: January 07, 2011, 08:44:47 PM by T6 »
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6269
Re: Wireless card sees the router but won't connect.
« Reply #2 on: January 07, 2011, 08:43:25 PM »

Open the terminal, log in as root and then:

1. type this command "service syslog restart"

2. Attempt to connect

3. Wait for 3 seconds and then type this command and report its output "cat /var/log/syslog | tail -n 20"
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Online Rudge

  • Hero Member
  • *****
  • Posts: 9779
  • I'm Just A Dog.
Re: Wireless card sees the router but won't connect.
« Reply #3 on: January 07, 2011, 09:01:54 PM »

Open the terminal, log in as root and then:

1. type this command "service syslog restart"

2. Attempt to connect

3. Wait for 3 seconds and then type this command and report its output "cat /var/log/syslog | tail -n 20"

oot@localhost galloway]# service syslog restart
Shutting down kernel logger:                                   [  OK  ]
Shutting down system logger:                                   [  OK  ]
Starting system logger:                                        [  OK  ]
Starting kernel logger:                                        [  OK  ]
[root@localhost galloway]# cat /var/log/syslog | tail -n 20
Jan  8 03:51:35 localhost avahi-daemon[2085]: Server startup complete. Host name is linux-3.local. Local service cookie is 2715888344.
Jan  8 03:51:36 localhost avahi-daemon[2085]: Service "linux-3" (/services/sftp-ssh.service) successfully established.
Jan  8 03:51:36 localhost avahi-daemon[2085]: Service "Remote Access on linux-3" (/services/openssh.service) successfully established.
Jan  8 03:51:40 localhost draknetcenter[8967]: ### Program is exiting ###
Jan  8 03:59:30 localhost klogd: Kernel logging (proc) stopped.
Jan  8 03:59:30 localhost klogd: Kernel log daemon terminating.
Jan  8 03:59:31 localhost exiting on signal 15
Jan  8 03:59:31 localhost syslogd 1.5.0: restart.
Jan  8 03:59:31 localhost klogd: klogd 1.5.0, log source = /proc/kmsg started.
Jan  8 03:59:43 localhost net_applet[2229]: launched command: /usr/sbin/usernetctl wlan0 report
Jan  8 03:59:43 localhost net_applet[2229]: running: consolehelper wlan0
Jan  8 04:00:04 localhost klogd: wlan0: direct probe to AP 00:1d:7e:0b:70:fd (try 1)
Jan  8 04:00:04 localhost klogd: wlan0: direct probe to AP 00:1d:7e:0b:70:fd (try 2)
Jan  8 04:00:04 localhost klogd: wlan0: direct probe responded
Jan  8 04:00:04 localhost klogd: wlan0: authenticate with AP 00:1d:7e:0b:70:fd (try 1)
Jan  8 04:00:04 localhost klogd: wlan0: authenticated
Jan  8 04:00:04 localhost klogd: wlan0: associate with AP 00:1d:7e:0b:70:fd (try 1)
Jan  8 04:00:04 localhost klogd: wlan0: RX AssocResp from 00:1d:7e:0b:70:fd (capab=0x411 status=12 aid=5)
Jan  8 04:00:04 localhost klogd: wlan0: AP denied association (code=12)
Jan  8 04:00:04 localhost klogd: wlan0: deauthenticating from 00:1d:7e:0b:70:fd by local choice (reason=3)
[root@localhost galloway]#


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6269
Re: Wireless card sees the router but won't connect.
« Reply #4 on: January 07, 2011, 09:09:54 PM »

Jan  8 04:00:04 localhost klogd: wlan0: RX AssocResp from 00:1d:7e:0b:70:fd (capab=0x411 status=12 aid=5)
Jan  8 04:00:04 localhost klogd: wlan0: AP denied association (code=12)
Jan  8 04:00:04 localhost klogd: wlan0: deauthenticating from 00:1d:7e:0b:70:fd by local choice (reason=3)
[root@localhost galloway]#


There is your problem, now off to google to try to find out what others with the same problem did to solve it  :D

Answering T6 question will help in trying to find out what the problem is

what kernel are you using? Try updating to the latest one if you are running older ones.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Online Rudge

  • Hero Member
  • *****
  • Posts: 9779
  • I'm Just A Dog.
Re: Wireless card sees the router but won't connect.
« Reply #5 on: January 07, 2011, 09:28:23 PM »
Well, you got about as far as I did. At least I no longer feel incompetent. Thanks.  ;D ;D


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6269
Re: Wireless card sees the router but won't connect.
« Reply #6 on: January 07, 2011, 09:34:37 PM »

Try to set up a static ip address and try to reconnect and check to see if you still get disconnected. The problem could be on your network, its not giving IP your computer an IP address.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Online Rudge

  • Hero Member
  • *****
  • Posts: 9779
  • I'm Just A Dog.
Re: Wireless card sees the router but won't connect.
« Reply #7 on: January 07, 2011, 09:42:35 PM »

Try to set up a static ip address and try to reconnect and check to see if you still get disconnected. The problem could be on your network, its not giving IP your computer an IP address.

Yea, I tried configuring the router in several different ways including assigning an IP. Strange that this same card worked before in a different box running the same OS. The router is set "currently" to WPA Personal and the closest option for the card is  "WPA/WPA2 Preshared Key". I think there is a conflict of some sort between the Security modes.


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6269
Re: Wireless card sees the router but won't connect.
« Reply #8 on: January 07, 2011, 09:54:12 PM »

What do you mean you assign an IP address on the router?

You assign a static IP address when you configure the card in PCC, go back to pcc, reconfigure the card and choose a static IP address this time and try to reconnect, If this doesnt work, then set the AP to not have encryption and then try to connect again and see if it will work.

There are two possible reasons for the error.

1. The AP does not give the connection an IP address and it disconnects because of it
2. The is a disagreement btw the encryption btw the card and the AP

Lets try to solve one at a time, lets try with the first one.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Online Rudge

  • Hero Member
  • *****
  • Posts: 9779
  • I'm Just A Dog.
Re: Wireless card sees the router but won't connect.
« Reply #9 on: January 07, 2011, 10:13:17 PM »
ok,, I set the card up with an IP address of 192.168.1.40

[root@localhost galloway]# cat /var/log/syslog | tail -n 20
Jan  8 05:10:22 localhost drakconnect[14325]: modified file /etc/sysconfig/network-scripts/ifcfg-wlan0
Jan  8 05:10:22 localhost drakconnect[14325]: modified file /etc/sysconfig/network-scripts/ifcfg-wlan0
Jan  8 05:10:22 localhost drakconnect[14325]: changed mode of /etc/sysconfig/network-scripts/ifcfg-wlan0 to 700
Jan  8 05:10:22 localhost drakconnect[14325]: written wlan0 interface configuration in /etc/sysconfig/network-scripts/ifcfg-wlan0
Jan  8 05:10:22 localhost drakconnect[14325]: writing host information to /etc/hosts
Jan  8 05:10:22 localhost drakconnect[14325]: created file /etc/hosts
Jan  8 05:10:22 localhost drakconnect[14325]: writing host information to /etc/hosts
Jan  8 05:10:22 localhost drakconnect[14325]: created file /etc/hosts
Jan  8 05:10:22 localhost drakconnect[14325]: set sethostname to localhost.localdomain
Jan  8 05:10:22 localhost drakconnect[14325]: running: /usr/bin/run-parts --arg localhost.localdomain /etc/sysconfig/network-scripts/hostname.d
Jan  8 05:10:22 localhost drakconnect[14325]: modified file /etc/sysconfig/network
Jan  8 05:10:22 localhost drakconnect[14325]: running: /sbin/ifdown wlan0 daemon
Jan  8 05:10:22 localhost ifplugd(wlan0)[13595]: Exiting.
Jan  8 05:10:23 localhost drakconnect[14325]: running: /sbin/ifup wlan0 daemon
Jan  8 05:10:25 localhost ifplugd(wlan0)[14598]: ifplugd 0.28 initializing.
Jan  8 05:10:25 localhost ifplugd(wlan0)[14598]: Using interface wlan0/00:1F:1F:38:95:35 with driver <rt61pci> (version: 2.6.33.7-pclos6.bfs)
Jan  8 05:10:25 localhost ifplugd(wlan0)[14598]: Using detection mode: SIOCETHTOOL
Jan  8 05:10:25 localhost ifplugd(wlan0)[14598]: Initialization complete, link beat not detected.
Jan  8 05:10:25 localhost drakconnect[14325]: running: /usr/sbin/wpa_cli select_network 0
Jan  8 05:10:25 localhost drakconnect[14325]: running: /etc/rc.d/init.d/network-up start


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6269
Re: Wireless card sees the router but won't connect.
« Reply #10 on: January 07, 2011, 10:19:39 PM »

Does it still fail to connect after you set up a static IP address?

Those logs file entries say you didnt try to connect to the AP
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Online Rudge

  • Hero Member
  • *****
  • Posts: 9779
  • I'm Just A Dog.
Re: Wireless card sees the router but won't connect.
« Reply #11 on: January 07, 2011, 10:21:57 PM »
still fails. If this is any help..

"[root@localhost galloway]# service network restart
Shutting down interface eth0:                                                                                                                [  OK  ]
Shutting down interface wlan0:                                                                                                               [  OK  ]
Shutting down loopback interface:                                                                                                            [  OK  ]
Bringing up loopback interface:                                                                                                              [  OK  ]
Configuring wireless regulatory domain                                                                                                       [  OK  ]
Bringing up interface eth0:                                                                                                                  [  OK  ]
Bringing up interface wlan0:  Error for wireless request "Set Encode" (8B2A) :
    SET failed on device wlan0 ; Invalid argument.
Selected interface 'wlan0'
OK
                                                                                                                                             [  OK  ]
[root@localhost galloway]#
"


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6269
Re: Wireless card sees the router but won't connect.
« Reply #12 on: January 07, 2011, 10:29:13 PM »

Now what did you do?  :D

We are supposed to try to connect to a wireless network and now, you cant even get the connection up  :D

what do this command give you?

cat /etc/sysconfig/network-scripts/ifcfg-wlan0

"still fails" is not very informative, when you try to connect, does it still fail with the same "denied association error" or different
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Online Rudge

  • Hero Member
  • *****
  • Posts: 9779
  • I'm Just A Dog.
Re: Wireless card sees the router but won't connect.
« Reply #13 on: January 07, 2011, 10:31:23 PM »
[root@localhost galloway]# cat /etc/sysconfig/network-scripts/ifcfg-wlan0
DEVICE=wlan0
BOOTPROTO=static
IPADDR=192.168.1.040
NETMASK=255.255.255.0
ONBOOT=yes
METRIC=35
MII_NOT_SUPPORTED=no
USERCTL=no
RESOLV_MODS=no
WIRELESS_MODE=Managed
WIRELESS_ESSID=RudgeTech
WIRELESS_ENC_KEY=s:
WIRELESS_WPA_DRIVER=wext
WIRELESS_WPA_REASSOCIATE=yes
IPV6INIT=no
IPV6TO4INIT=no
ACCOUNTING=yes
[root@localhost galloway]#
« Last Edit: January 07, 2011, 10:57:08 PM by Rudge »


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Online Rudge

  • Hero Member
  • *****
  • Posts: 9779
  • I'm Just A Dog.
Re: Wireless card sees the router but won't connect.
« Reply #14 on: January 07, 2011, 10:34:05 PM »
Don't start getting on me! I told you I didn't know what i was doing with this wireless stuff. LOL   ;D ;D


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan