1
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 即可。 |
2
jasontse 2016-01-15 17:16:37 +08:00 via iPad
iface eth-0 inet static
是什么鬼 |
3
jasontse 2016-01-15 17:17:26 +08:00 via iPad
顺便安利一下 dietpi.com
|
5
WD40 2016-01-15 18:00:08 +08:00
@Admstor 有从开机或 sudo /etc/init.d/networking restart 吗 ?
或者可以参考这里 http://www.wikihow.com/Add-or-Change-the-Default-Gateway-in-Linux |