1.查看網(wǎng)卡標(biāo)識(shí)
ip addr
網(wǎng)卡標(biāo)識(shí)為wlp1s0
2.掃描無線網(wǎng)
iwlist wlp1s0 scan | grep ESSID
正文
1.新建一個(gè)wpa.conf
,放在/etc
目錄下
network={
ssid="Tenda_XX"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="Password1234"
}
2.打開配置文件
/etc/network/interfaces
3.輸入以下內(nèi)容
# The wlan network interface
auto wlp1s0
iface wlp1s0 inet dhcp
wpa-conf /etc/wpa.conf
4.重啟網(wǎng)絡(luò)
/etc/init.d/networking restart