Linux 設定無線網路
11 月 07
REF: http://jamyy.us.to/blog/2009/05/452.html
Ubuntu、Fedora 手動設定無線網路連線
by Jamyy on 五月.15, 2009, under Linux
Ubuntu、Fedora 手動設定無線網路連線
- 停用 NetworkManager
- 設定 WEP、WPA-PSK、WPA2-PSK 加密連線
環境: Ubuntu 8.10、Fedora 9
Ubuntu | Fedora | |
停用 NM |
sysv-rc-conf –level 2 NetworkManager offsysv-rc-conf –level 2 networking on/etc/init.d/NetworkManager stop /etc/init.d/networking start |
chkconfig NetworkManager off chkconfig network on#for WPA/WPA2 encryption sed -i -e ‘s/23 88/09 88/’ /etc/init.d/wpa_supplicant chkconfig wpa_supplicant on /etc/init.d/wpa_supplicant start/etc/init.d/NetworkManager stop /etc/init.d/network start |
WEP | vi /etc/network/interfaces
|
vi /etc/sysconfig/network-scripts/ifcfg-wlan0
|
WPA- PSK |
vi /etc/network/interfaces
*. 可使用 wpa_passphrase SSIDname Key 取得編碼過的 Key |
vi /etc/sysconfig/wpa_supplicant
wpa_passphrase SSID Key >> /etc/wpa_supplicant/wpa_supplicant.conf vi /etc/wpa_supplicant/wpa_supplicant.conf
vi /etc/sysconfig/network-scripts/ifcfg-wlan0
|
WPA2- PSK |
vi /etc/network/interfaces
*. 可使用 wpa_passphrase SSIDname Key 取得編碼過的 Key |
|
完成 設定 |
/etc/init.d/networking restart | /etc/init.d/wpa_supplicant restart /etc/init.d/network restart |
Ref:
- ubuntu forums – HOWTO: Wireless Security – WPA1, WPA2, LEAP, etc.
- tavi.debian.org.tw – /etc/network/interfaces 及網路設定之大成
- FedoraForum – How to access WEP/WPA/WPA2 access points with wpa_supplicant in FC5