无法连接WPA-PSK/WPA2-PSK
-
- 帖子: 11
- 注册时间: 2005-12-07 19:48
无法连接WPA-PSK/WPA2-PSK
我看了一下,10.4的无线连接最高也只有wpa及wpa2,那么,WPA-PSK/WPA2-PSK加密有什么办法可以连接么?
谢谢
谢谢
-
- 帖子: 458
- 注册时间: 2006-11-27 12:25
Re: 无法连接WPA-PSK/WPA2-PSK
在无线路由器里设置使用WPA-PSK/WPA2-PSK加密连接就行了吧。我就是这样操作的,本本上没有做任何设置,自动转成WPA-PSK/WPA2-PSK加密连接了。(在本本上显示是WPA/WPA2连接,但在路由器上显示是WPA2/PSK连接)
-
- 帖子: 11
- 注册时间: 2005-12-07 19:48
Re: 无法连接WPA-PSK/WPA2-PSK
呃,但是死活连不上。ygf 写了:在无线路由器里设置使用WPA-PSK/WPA2-PSK加密连接就行了吧。我就是这样操作的,本本上没有做任何设置,自动转成WPA-PSK/WPA2-PSK加密连接了。(在本本上显示是WPA/WPA2连接,但在路由器上显示是WPA2/PSK连接)
-
- 帖子: 1
- 注册时间: 2007-06-23 12:04
Re: 无法连接WPA-PSK/WPA2-PSK

俺用的是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
代码: 全选
cd /usr/ports/security/wpa_supplicant/
make install
代码: 全选
pkg_add -vrf wpa_supplicant
* Downloaded wpa_supplicant from here here
代码: 全选
wget http://hostap.epitest.fi/releases/wpa_supplicant-0.5.10.tar.gz
代码: 全选
tar xfz wpa_supplicant-0.5.10.tar.gz
代码: 全选
cp defconfig .config
代码: 全选
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
}
* “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
* Check that you are associated
代码: 全选
iwconfig IFACE
代码: 全选
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
-
- 帖子: 32
- 注册时间: 2009-07-31 17:22
Re: 无法连接WPA-PSK/WPA2-PSK
我用的是ubuntu910,安装wpasupplicant时提示已经是最新版本了,但就是配置不成功,执行完wpa_supplicant -B -i wlan0 -Dwext -c /etc/wpa_supplicant.conf,总是提示not assoisated,不知道是什么原因?网卡是broadcom4318芯片,dell 1370 mini pci 无线网卡。
-
- 帖子: 32
- 注册时间: 2009-07-31 17:22
Re: 无法连接WPA-PSK/WPA2-PSK
将执行的命令贴上来。
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生成过配置文件试过都是相同的结果。
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生成过配置文件试过都是相同的结果。
-
- 帖子: 59
- 注册时间: 2008-05-07 18:52
Re: 无法连接WPA-PSK/WPA2-PSK
看来我的w311u网卡的问题很快就要见到曙光了。maybe,= 我回到office 试试看。 thx
-
- 帖子: 29
- 注册时间: 2006-10-30 21:39
Re: 无法连接WPA-PSK/WPA2-PSK
斗胆说一句,如果还是这么多的无线网卡问题,换回 debian testing/sid 吧,如果还是不行,就换卡吧
在debian不会让你配置wapsupplicant的,因为那不需要
在debian不会让你配置wapsupplicant的,因为那不需要
-
- 帖子: 32
- 注册时间: 2009-07-31 17:22
Re: 无法连接WPA-PSK/WPA2-PSK
我现在用红旗桌面7.0版,直接就可以连上wpa-psk/wpa2-psk的无线网络,什么都不需要配置,等ubuntu哪个 版本解决了这个问题再考虑使用吧!
-
- 帖子: 32
- 注册时间: 2009-07-31 17:22
Re: 无法连接WPA-PSK/WPA2-PSK
测试表明,我之前的910之所以连接不上wpa/psk-wpa2/psk的网络,是由于我在rc.local中修改了网卡mac地址的原因,将mac地址改回来之后就可以顺利连上了!
-
- 帖子: 20
- 注册时间: 2010-12-17 22:22
Re: 无法连接WPA-PSK/WPA2-PSK
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'.
我执行完命令之后就这样了..
什么回事..
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'.
我执行完命令之后就这样了..
什么回事..
- photor
- 论坛版主
- 帖子: 11004
- 注册时间: 2008-04-26 12:41
-
- 帖子: 4
- 注册时间: 2010-07-15 22:54
Re: 无法连接WPA-PSK/WPA2-PSK
我的之前也是链接不上,不过事因为隐藏了ssid,先打开ssid使ubuntu能够搜索到就连上去了,之后再隐藏就好了