WD40
2016-01-15 17:12:41 +08:00
sudo nano /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet static
allow-hotplug wlan0
#iface wlan0 inet static
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
address 10.1.10.69
netmask 255.255.255.0
gateway 10.1.10.1
iface default inet dhcp
wireless-power off
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="你的路由器芳名"
psk="路由器密码"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
auth_alg=OPEN
}
其实不必在树莓上配置固定 IP ,直接在路由器上登记 MAC ADDRESS 后指派 IP 即可。