LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-26-2010, 03:28 PM   #1
ripp3r
Member
 
Registered: Feb 2010
Location: Switzerland
Distribution: Slackware 13.0 x64
Posts: 71

Rep: Reputation: 15
Unhappy 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!
 
Old 02-26-2010, 07:34 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
What does 'iwlist ra0 scan' show? Do you see your AP?
 
Old 02-27-2010, 04:14 AM   #3
sojasau
LQ Newbie
 
Registered: Jul 2009
Location: /home
Distribution: Arch, Slackware64
Posts: 13

Rep: Reputation: 0
Try the Script in my Signature. It's great to help with Networkproblems.
 
Old 02-27-2010, 07:16 AM   #4
ripp3r
Member
 
Registered: Feb 2010
Location: Switzerland
Distribution: Slackware 13.0 x64
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dive View Post
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
 
Old 02-27-2010, 07:38 AM   #5
ripp3r
Member
 
Registered: Feb 2010
Location: Switzerland
Distribution: Slackware 13.0 x64
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sojasau View Post
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.
 
Old 02-27-2010, 09:37 AM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
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.
 
1 members found this post helpful.
Old 02-27-2010, 09:49 AM   #7
sojasau
LQ Newbie
 
Registered: Jul 2009
Location: /home
Distribution: Arch, Slackware64
Posts: 13

Rep: Reputation: 0
Quote:
Originally Posted by ripp3r View Post
Your script says that I can check the file collectNWData.txt, where is this file?
In the same Folder where the Script is.
 
Old 02-27-2010, 11:21 AM   #8
slackwaredanny
Member
 
Registered: Feb 2010
Location: Sweden
Distribution: Slackware
Posts: 88
Blog Entries: 3

Rep: Reputation: 20
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!
 
Old 02-27-2010, 11:52 AM   #9
ripp3r
Member
 
Registered: Feb 2010
Location: Switzerland
Distribution: Slackware 13.0 x64
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dive View Post
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.
 
Old 02-27-2010, 11:53 AM   #10
ripp3r
Member
 
Registered: Feb 2010
Location: Switzerland
Distribution: Slackware 13.0 x64
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sojasau View Post
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
 
Old 02-27-2010, 11:54 AM   #11
ripp3r
Member
 
Registered: Feb 2010
Location: Switzerland
Distribution: Slackware 13.0 x64
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by slackwaredanny View Post
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
 
Old 02-27-2010, 01:44 PM   #12
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by ripp3r View Post
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

Last edited by dive; 02-27-2010 at 01:46 PM.
 
Old 02-27-2010, 03:10 PM   #13
ripp3r
Member
 
Registered: Feb 2010
Location: Switzerland
Distribution: Slackware 13.0 x64
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dive View Post
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
 
Old 02-27-2010, 04:32 PM   #14
framp
Member
 
Registered: Apr 2003
Location: Stuttgart, BW Germany
Distribution: SuSE 10.3-11.0, Knoppix, Ubuntu 8.10, Fedora 10
Posts: 119
Blog Entries: 5

Rep: Reputation: 15
Quote:
Originally Posted by ripp3r View Post
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?

Last edited by framp; 02-27-2010 at 04:34 PM.
 
Old 02-27-2010, 04:42 PM   #15
ripp3r
Member
 
Registered: Feb 2010
Location: Switzerland
Distribution: Slackware 13.0 x64
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by framp View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless cannot connect to WPA encypted network under Fedora 9 bearraiser Linux - Wireless Networking 5 04-19-2010 09:10 AM
Can't connect to encrypted wireless (WPA-PSK + TKIP) YAOMTC Linux - Wireless Networking 1 11-26-2009 03:21 PM
NM & WICD cannot connect to WEP/WPA 2 wireless elusive_night Linux - Newbie 3 09-28-2009 06:04 PM
Why can I see wireless networks but never connect, WPA/WEP or open? Dan.b Linux - Newbie 3 09-03-2009 10:43 PM
Can't connect wireless DLINK card with ndiswrapper and WPA+TKIP eraosso Slackware 10 12-28-2007 10:32 AM


All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration