无法连接WPA-PSK/WPA2-PSK

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
漓江夜话
帖子: 11
注册时间: 2005-12-07 19:48

无法连接WPA-PSK/WPA2-PSK

#1

帖子 漓江夜话 »

我看了一下,10.4的无线连接最高也只有wpa及wpa2,那么,WPA-PSK/WPA2-PSK加密有什么办法可以连接么?
谢谢
ygf
帖子: 458
注册时间: 2006-11-27 12:25

Re: 无法连接WPA-PSK/WPA2-PSK

#2

帖子 ygf »

在无线路由器里设置使用WPA-PSK/WPA2-PSK加密连接就行了吧。我就是这样操作的,本本上没有做任何设置,自动转成WPA-PSK/WPA2-PSK加密连接了。(在本本上显示是WPA/WPA2连接,但在路由器上显示是WPA2/PSK连接)
漓江夜话
帖子: 11
注册时间: 2005-12-07 19:48

Re: 无法连接WPA-PSK/WPA2-PSK

#3

帖子 漓江夜话 »

ygf 写了:在无线路由器里设置使用WPA-PSK/WPA2-PSK加密连接就行了吧。我就是这样操作的,本本上没有做任何设置,自动转成WPA-PSK/WPA2-PSK加密连接了。(在本本上显示是WPA/WPA2连接,但在路由器上显示是WPA2/PSK连接)
呃,但是死活连不上。
michael632
帖子: 15
注册时间: 2010-02-18 19:15

Re: 无法连接WPA-PSK/WPA2-PSK

#4

帖子 michael632 »

恭喜你!遇到 通病了。。。不是 你一个人出这样的故障。。。
huozhe3136
帖子: 1
注册时间: 2007-06-23 12:04

Re: 无法连接WPA-PSK/WPA2-PSK

#5

帖子 huozhe3136 »

:em05 俺参考这里http://www.codealias.info/technotes/wir ... inux_setup ,配置成功
俺用的是kubuntu 10.0.4,默认已自带wpa_supplicant 命令,所以跳过了安装步骤

为防止以后访问出错,先copy下来


Steps for configuring and using WAP2/PSK on your wireless device

1. Install wpa_supplicant
wpa_supplicant is an EAP/WPA/WPA2 supplicant available for Linux, Windows and Unix systems. Windows binaries are available from the website. The following are two methods for installing wpa_supplicant under linux and FreeBSD.

Install using package managers

Under debian compatible linux distributions, wpa_supplicant can be installed by typing

代码: 全选

sudo apt-get install wpasupplicant
Under FreeBSD

代码: 全选

cd  /usr/ports/security/wpa_supplicant/
make install
or

代码: 全选

pkg_add -vrf wpa_supplicant
Compile from source

* Downloaded wpa_supplicant from here here

代码: 全选

wget http://hostap.epitest.fi/releases/wpa_supplicant-0.5.10.tar.gz
* Extract the archive

代码: 全选

tar xfz wpa_supplicant-0.5.10.tar.gz
* Create a .config file

代码: 全选

 cp defconfig .config
* Build and install

代码: 全选

make 
  make install


2. Configure

Edit the wpa_supplicant configuration file (e.g. /etc/wpa_supplicant.conf), ant put the following

代码: 全选

  network={
     ssid="YOUR-SSSID"
     psk=PSK
   }
* “PSK” is the PSK generated from the password shared with the wireless access point
* “YOUR-SSID” is the (B/E)SSID of the wireless access network.

To generate the wpa_supplicant.conf file, the wpa_passphrase tool can be used as follows.

代码: 全选

wpa_passphrase YOUR-SSID PASSWORD

3. Run the wpa_supplicant daemon

代码: 全选

wpa_supplicant -B -i IFACE -Dwext -c /etc/wpa_supplicant.conf
Where IFACE is the name of your wireless interface.

* Check that you are associated

代码: 全选

 iwconfig IFACE
* Get an IP address

代码: 全选

dhclient IFACE

4.Automating

In order to avoid typing all these commands each time you reboot or want to connect to your wireless network, you can (under linux) use the /etc/network/interfaces file to automatically handle network association and IP address acquisition. For this purpose, put the following in /etc/network/interfaces

代码: 全选

 auto IFACE
 iface IFACE inet dhcp
     pre-up wpa_supplicant -Bw -Dwext -i IFACE -c/etc/wpa_supplicant.conf
     post-down killall -q wpa_supplicant
lijianen
帖子: 32
注册时间: 2009-07-31 17:22

Re: 无法连接WPA-PSK/WPA2-PSK

#6

帖子 lijianen »

我用的是ubuntu910,安装wpasupplicant时提示已经是最新版本了,但就是配置不成功,执行完wpa_supplicant -B -i wlan0 -Dwext -c /etc/wpa_supplicant.conf,总是提示not assoisated,不知道是什么原因?网卡是broadcom4318芯片,dell 1370 mini pci 无线网卡。
lijianen
帖子: 32
注册时间: 2009-07-31 17:22

Re: 无法连接WPA-PSK/WPA2-PSK

#7

帖子 lijianen »

将执行的命令贴上来。
hao@lihao-laptop:~$ sudo wpa_supplicant -B -i wlan0 -Dwext -c /etc/wpa_supplicant.conf
lihao@lihao-laptop:~$ iwconfig wlan0
wlan0 IEEE 802.11bg Mode:Managed Frequency:2.437 GHz
Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

lihao@lihao-laptop:~$
其中wpa_supplicant.conf,用sudo wpa_passphrase YOUR-SSID PASSWORD命令其中YOUR-SSID分别用ESSID和BSSID生成过配置文件试过都是相同的结果。
seanumen
帖子: 59
注册时间: 2008-05-07 18:52

Re: 无法连接WPA-PSK/WPA2-PSK

#8

帖子 seanumen »

看来我的w311u网卡的问题很快就要见到曙光了。maybe,= 我回到office 试试看。 thx
tsengtim
帖子: 29
注册时间: 2006-10-30 21:39

Re: 无法连接WPA-PSK/WPA2-PSK

#9

帖子 tsengtim »

斗胆说一句,如果还是这么多的无线网卡问题,换回 debian testing/sid 吧,如果还是不行,就换卡吧

在debian不会让你配置wapsupplicant的,因为那不需要
lijianen
帖子: 32
注册时间: 2009-07-31 17:22

Re: 无法连接WPA-PSK/WPA2-PSK

#10

帖子 lijianen »

我现在用红旗桌面7.0版,直接就可以连上wpa-psk/wpa2-psk的无线网络,什么都不需要配置,等ubuntu哪个 版本解决了这个问题再考虑使用吧!
lijianen
帖子: 32
注册时间: 2009-07-31 17:22

Re: 无法连接WPA-PSK/WPA2-PSK

#11

帖子 lijianen »

测试表明,我之前的910之所以连接不上wpa/psk-wpa2/psk的网络,是由于我在rc.local中修改了网卡mac地址的原因,将mac地址改回来之后就可以顺利连上了!
peardong
帖子: 20
注册时间: 2010-12-17 22:22

Re: 无法连接WPA-PSK/WPA2-PSK

#12

帖子 peardong »

ld@ld-K42JA:~$ wpa_supplicant -B -i wlan0 -Dwext -c /etc/wpa_supplicant.conf
Line 9: unknown global field 'fast_reauth'.
Line 9: Invalid configuration line 'fast_reauth'.
Line 23: Invalid passphrase length 64 (expected: 8..63) 'b763fe2eac9f4760644162d7b7b3db672c61a8279dab49ccc99f9c661516ec31"'.
Line 23: failed to parse psk '"b763fe2eac9f4760644162d7b7b3db672c61a8279dab49ccc99f9c661516ec31"'.
Line 27: WPA-PSK accepted for key management, but no PSK configured.
Line 27: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant.conf'.

我执行完命令之后就这样了..
什么回事..
linbc
帖子: 10
注册时间: 2008-11-08 9:30

Re: 无法连接WPA-PSK/WPA2-PSK

#14

帖子 linbc »

都11.04了,还存在这个问题,真是悲剧啊
守旧老人
帖子: 4
注册时间: 2010-07-15 22:54

Re: 无法连接WPA-PSK/WPA2-PSK

#15

帖子 守旧老人 »

我的之前也是链接不上,不过事因为隐藏了ssid,先打开ssid使ubuntu能够搜索到就连上去了,之后再隐藏就好了
回复