Generate Profile Template
wpa_passphrase <yourAPssid> <yourpassphrase> > /etc/wpa_supplicant/wpa_supplicant.conf
Refer to the configuration below to complement the above configuration
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"}
Configuration key Points Description
Network={ssid= "Mywireless" #请非常注意你ssid名的大小写. PROTO=RSN #Robust Security Network: A robust, secure web that indicates that this network configuration is more secure than WEP mode. KEY_MGMT=WPA-PSK #请无论你是使用WPA-psk,wpa2-psk, please enter the WPA-PSK here. This seems to Wpa_supplicant Wpa-psk,wpa2-psk is wpa-pskpairwise=ccmp tkip #关键点, Wpa_supplicant currently does not recognize the AES Encryption Standard GROUP=CCMP TKIP # Ibid. psk=7b271c9a7c8a6ac07d12403a1f0792d7d92b5957ff8dfd56481ced43ec6a6515 #wpa_supplicant算出来的加密密码.
Manually apply the configuration
Wpa_supplicant-b-I wlan0-c/etc/wpa_supplicant/wpa_supplicant.confdhclient wlan0
Write configuration to/etc/network/interfaces (tested under Debian 8.0, other versions not tested)
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
Reference documents
- Http://blog.wp08.com/article/uncategorized/754.html
- Http://www.360doc.com/content/12/0709/15/9424702_223191508.shtml
Configure WPA2 encrypted wireless network under Linux terminal