树莓派配置静态IP
备份原文件:
sudo cp /etc/network/interfaces /etc/network/interfaces.bk
编辑:
sudo nano /etc/network/interfaces
修改为以下内容:
auto lo iface lo inet loopback
iface eth0 inet static
address 192.168.1.88 netmask 255.255.255.0 gateway 192.168.1.1 allow-hotplug wlan0 iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
重启系统:
sudo reboot