LINUX終端下配置WPA2加密無線網路

來源:互聯網
上載者:User

標籤:

組建組態檔案模版
wpa_passphrase <yourAPssid> <yourpassphrase> > /etc/wpa_supplicant/wpa_supplicant.conf
參考下面的配置將上面的配置補充完整

For WPA2-Personal

ctrl_interface=/var/run/wpa_supplicantctrl_interface_group=0ap_scan=1network={        ssid="my_network"        proto=RSN        key_mgmt=WPA-PSK        pairwise=CCMP TKIP        group=CCMP TKIP        psk="secret_password"}
配置關鍵點說明
network={ssid="Mywireless" #請非常注意你ssid名的大小寫。proto=RSN #Robust Security Network:強健安全網路,表示這個網路設定比WEP模式要更安全。key_mgmt=WPA-PSK #請無論你是使用WPA-PSK,WPA2-PSK,都請在這裡輸入 WPA-PSK。這在wpa_supplicant看來WPA-PSK,WPA2-PSK都是 WPA-PSKpairwise=CCMP TKIP #關鍵點,wpa_supplicant目前還不認AES的加密標準group=CCMP TKIP #同上psk=7b271c9a7c8a6ac07d12403a1f0792d7d92b5957ff8dfd56481ced43ec6a6515 #wpa_supplicant算出來的加密密碼。
手動應用配置
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.confdhclient wlan0
將配置寫入 /etc/network/interfaces (在debian 8.0 下測試通過,其他版本沒有測試)
allow-hotplug wlan0iface wlan0 inet staticaddress 192.168.1.101netmask 255.255.255.0gateway 192.168.1.1pre-up wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
參考文檔
  • http://blog.wp08.com/article/uncategorized/754.html
  • http://www.360doc.com/content/12/0709/15/9424702_223191508.shtml

LINUX終端下配置WPA2加密無線網路

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.