今天花了點時間 測試, 結果 看起來是可以成功連 internet. 所以 寫下來順便當作紀錄.
OS: Debian Sarge 3.1 (改sources.list 使用testing )
Kernel: 手動編譯核心 2.6.16 (核心編譯的時候 ipw2200, ieee80211 須configured as modules)
wpa_supplicant: version 0.4.9 (0.3.8以前的版本似乎有bug. 若使用 WEP open 的 方式 連上 ap. 參考 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=296291)
wpa_supplicant.conf 設定內容
- 代碼: 選擇全部
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=2
fast_reauth=1
network={
ssid="ap_name"
key_mgmt=NONE #for WEP
wep_key0="passwd_here"
priority=5
auth_alg=OPEN #auth type
}
步驟:
1st. make sure
- 代碼: 選擇全部
ipw2200
ieee80211_crypt_ccmp.ko
ieee80211_crypt.ko
ieee80211_crypt_tkip.ko
ieee80211_crypt_wep.ko
ieee80211.ko
is running by 'lsmod | grep ieee' or 'lsmod | grep ipw2200'
(** firmware installation is also required. please check the path /etc/hotplug/firmware.agent)
2nd.
- 代碼: 選擇全部
ifconfig eth1 down
iwconfig eth1 key password_here
3rd.
- 代碼: 選擇全部
wpa_supplicant -w -i eth1 -D ipw -c /etc/wpa_supplicant.conf -B
4th. wpa client
- 代碼: 選擇全部
執行wpa_cli
在wpa_cli 開啟的視窗底下輸入logon
5th. run another shell as root
- 代碼: 選擇全部
dhclient eth1
test with mozilla or firefox to see weather the connection worked or not.
ping to the gateway should also get worked.
congrats ... done!