1. 程式人生 > >linux下設定wifi開機連線上網

linux下設定wifi開機連線上網

1、編輯/etc/wpa_supplicant.conf 將可加入的wifi資訊寫入檔案

network={
ssid="ssid1"
psk="password1"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP priority=1
}

network={
ssid="ssid2"
psk="password2"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP priority=2
} 2、在/etc/rc.local檔案中加入: wpa_supplicant -Dwext -B -iwlan0 -c/etc/wpa_supplicant.conf