树莓派配置静态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

 

posted @ 2014-06-06 20:12  hiwjy  阅读(834)  评论(0编辑  收藏  举报