小弟發現使用加密的無線網路會當機
這種情形已經持續好一陣子了,只不過最近比較受不了了,所以才寫上來向大家請教
我使用加密的無線網路(tkip),是利用wpa_supplicant來進行
方法是先編輯一個檔案/etc/wpa_supplicant/Wireless.conf,內容如下:
network={
ssid="Wireless"
#psk="xxxxxxxxxxxxxxx"
psk=c6aekpxiqvrjkgmdfgkjsirc0dfnskldmnmvbncvbxcdfshtr8
}
然後以root下兩個指令:
wpa_supplicant -BDwext -i eth1 -c /etc/wpa_supplicant/Wireless.conf
dhclient eth1
通常上面這個兩步驟可以讓小弟順利上網
不過偶爾卻會讓整個Linux死當,這種情形特別常出現在那台AP剛開機不久或者AP當機時
這次我在AP剛開機時下了上述的指令,呈現如下訊息之後,我的Debian就立即死當了
There is already a pid file /var/run/dhclient.pid with pid 2761
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth1/00:17:00:5c:8f:a2
Sending on LPF/eth1/00:17:00:5c:8f:a2
Sending on Socket/fallback
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5
如果可以正常連上的話,訊息會是如下
There is already a pid file /var/run/dhclient.pid with pid 2691
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth1/00:17:00:5c:8f:a2
Sending on LPF/eth1/00:17:00:5c:8f:a2
Sending on Socket/fallback
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.2 -- renewal in 33111 seconds.
看來兩者最主要的差別是在最後兩行,不知各位前輩是否有遇過類似的問題呢?
我用的系統是Debian testing 核心2.6.18-4-486
無線網卡是intel-2200(ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.1.2kmq)
無線AP是ASUS(型號WL-530g,怪機子...,開機一段時間就會當掉,幾乎每天都要重開機)
如果小弟的訊息有不夠清楚或詳盡的,煩請告知,感謝不盡