LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Wireless WPA can't connect (https://www.linuxquestions.org/questions/slackware-14/wireless-wpa-cant-connect-791813/)

ripp3r 02-26-2010 03:28 PM

Wireless WPA can't connect
 
Hi all,

I'm able to configure my Wireless network to connect with an AP with WEP key but...

Now I'm at home, I've a WPA2 key (my router now is supporting both, WPA and WPA2). I used WICD to connect but no success at all! It just stops with "Connection failed: Could not contact the wireless access point"

if I type IWLIST key:

Code:

ra0 2 key sizes: 40, 104bits
4 keys available

[1]: off
[2]: off
[3]: off
[4]: off

Current transmit key: [1]

here's my wpa_supplicant.conf

Code:

ctrl_interface=/var/run/wpa_supplicant
update_config=1
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1

network={
scan_ssid=1
ssid="mysid"
proto=WPA RSN
key_mgmt=WPA-PSK
psk=MY HEX KEY GENERATED WITH WPA_PASSPHRASE
}


I also tried with WPA_GUI but no luck :(

If I run this: wpa_supplicant -Dwext -ira0 -c/etc/wpa_supplicant.conf

this is the output:

Code:

CTRL-EVENT-SCAN-RESULTS
Trying to associate with MAC ADDRESS (SSID='mysid' freq=2462 Mhz)
Authentication with MAC ADDRESS timed out.

here there's my rc.inet1.conf file:

Code:

ifname[1]="ra0"
ipaddr[1]="myip"
netmask[1]="mymask"
use_dhcp[1]=""
dhcp_hostname[1]=""
gateway[1]="mygw"
wlan_wpa[1]="wpa_supplicant"
wlan_wpadriver[1]="wext" #also tried with RALINK driver


I'm sure you can help me!

dive 02-26-2010 07:34 PM

What does 'iwlist ra0 scan' show? Do you see your AP?

sojasau 02-27-2010 04:14 AM

Try the Script in my Signature. It's great to help with Networkproblems.

ripp3r 02-27-2010 07:16 AM

Quote:

Originally Posted by dive (Post 3878374)
What does 'iwlist ra0 scan' show? Do you see your AP?

Code:

ra0      Scan completed :
          Cell 01 - Address: Mac Address
                    ESSID:"mysid"
                    Mode:Managed
                    Channel:11
                    Quality:100/100  Signal level:-31 dBm  Noise level:-87 dBm
                    Encryption key:on
                    Bit Rates:11 Mb/s
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK


ripp3r 02-27-2010 07:38 AM

Quote:

Originally Posted by sojasau (Post 3878694)
Try the Script in my Signature. It's great to help with Networkproblems.

Thanks for your suggestion, here's the output:

Code:

root@slk64:~/Downloads# ./collectNWData.sh
collectNWData.sh V0.6.3.0-2 (Rev: 1.203, Build: 2010/02/25 19:10:11 UTC)

--- Which type of your network connection should be tested?
--- (1) Wired connection
--- (2) Wireless connection (WLAN)
--- Please answer with 1-2:2

--- What's the type of networktopology?
--- (1) WLAN access point <---> LinuxClient
--- (2) WLAN HW router <---> LinuxClient
--- (3) WLAN access point <---> LinuxRouter <---> LinuxClient
--- (4) WLAN HW router <---> LinuxRouter <---> LinuxClient
--- Please answer with 1-4:1

--- NWCollect is collecting networkconfiguration information into file collectNWData.txt ...

--- NWEliza is analyzing the system for common network configuration errors ...

!!! CND0120E: Network card ra0 has no IP address
!!! CND0230W: IPV6 enabled
!!! CND0450W: WLAN key masquerading is not fully tested on this distribution. Please check output file collectNWData.txt for visible WLAN keys and masquerade them manually

--- Go to http://www.linux-tips-and-tricks.de/CND#English to get more detailed instructions
--- about the error/warning messages and how to fix the problems on your own
--- Place the contents of file collectNWData.txt in the net
--- (see http://www.linux-tips-and-tricks.de/CND_UPL#English for links)
--- and then paste the nopaste link on your favorite Linux forum.
root@slk64:~/Downloads#

Both 1 and 2 (options) give me the same result.

Your script says that I can check the file collectNWData.txt, where is this file?

Anyway, I think the problem is with the key, because as said, with the command IWLIST KEY shows me that no key is used.

dive 02-27-2010 09:37 AM

I have these settings in my wpa_supplicant.conf:

network={
ssid="DarkStar"
proto=WPA2 WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="key in text"
}

You seem to be missing some.

sojasau 02-27-2010 09:49 AM

Quote:

Originally Posted by ripp3r (Post 3878851)
Your script says that I can check the file collectNWData.txt, where is this file?

In the same Folder where the Script is.

slackwaredanny 02-27-2010 11:21 AM

Start wicd first try to connect start wpa_gui and scan while wicd is connecting double click on your essid enter your psk hit enter and wait until wicd is done it will fail and the state that your are connected to your network at the bottom.
this is what i do its not how it should be but it works!

ripp3r 02-27-2010 11:52 AM

Quote:

Originally Posted by dive (Post 3878982)
I have these settings in my wpa_supplicant.conf:

network={
ssid="DarkStar"
proto=WPA2 WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="key in text"
}

You seem to be missing some.

Hi Dive,

I tried what you said but no luck :(

When you are connected to a network (WPA), if you type IWLIST KEY what's your output? Cause I think that the main problem is only that my slack doesn't send any key.

ripp3r 02-27-2010 11:53 AM

Quote:

Originally Posted by sojasau (Post 3878998)
In the same Folder where the Script is.

Yes thanks :) I was looking for a file named NWData.txt but the name was collectNWData.txt :P

ripp3r 02-27-2010 11:54 AM

Quote:

Originally Posted by slackwaredanny (Post 3879088)
Start wicd first try to connect start wpa_gui and scan while wicd is connecting double click on your essid enter your psk hit enter and wait until wicd is done it will fail and the state that your are connected to your network at the bottom.
this is what i do its not how it should be but it works!

No way, it doesn't work

dive 02-27-2010 01:44 PM

Quote:

Originally Posted by ripp3r (Post 3879112)
Hi Dive,

I tried what you said but no luck :(

When you are connected to a network (WPA), if you type IWLIST KEY what's your output? Cause I think that the main problem is only that my slack doesn't send any key.

Code:

wlan0    2 key sizes : 40, 104bits
          4 keys available :
                [1]: A79B-3546-1805-7A90-CD62-0617-C831-A5ED (128 bits)
                [2]: AD67-A1C3-44E5-4688-E6CC-C695-03E6-8D57 (128 bits)
                [3]: 3C2C-BFCD-E05C-D475-E00D-3EA1-2B19-75DC (128 bits)
                [4]: off
          Current Transmit Key: [1]
          Security mode:open

Maybe try typing your key in text between "" and see if that works

ripp3r 02-27-2010 03:10 PM

Quote:

Originally Posted by dive (Post 3879220)
Maybe try typing your key in text between "" and see if that works

I tried... no luck at all :(

I think that the problem is only in 64 bit version, 'cause on BackTrack I haven't any trouble.

And again... this evening I tried to install VmWare but everytime I try to start it, I got an error message in the console.

This's very frustrating! I did the same installation on a slackware 64 bit installed on VirtualBox and it worked perfectly.


I don't know, maybe tomorrow I'll try to reinstall completely slackware... and if I've still have problem... I think I'll change distro :(

Damn I love slackware

framp 02-27-2010 04:32 PM

Quote:

Originally Posted by ripp3r (Post 3878851)
Your script says that I can check the file collectNWData.txt, where is this file?

Code:

--- Place the contents of file collectNWData.txt in the net
--- (see http://www.linux-tips-and-tricks.de/CND_UPL#English for links)

I can modify the script to print out the whole path ... do you think it's worth to do this?

ripp3r 02-27-2010 04:42 PM

Quote:

Originally Posted by framp (Post 3879372)
Code:

--- Place the contents of file collectNWData.txt in the net
--- (see http://www.linux-tips-and-tricks.de/CND_UPL#English for links)

I can modify the script to print out the whole path ... do you think it's worth to do this?

No, I'm a bit stupid (and very tired) so I didn't read very well ;)

it's obvious that the file is placed where you run the script :)


Anyway, if you want, at the end you can offer the possibility to open that file (with nano will fine)

Just a suggestion :)


All times are GMT -5. The time now is 11:15 AM.