2016发布的rasbian采用的网络机制是dhcpcd;

不能使用以前的修改配置文件/etc/network/interfaces;

 新的配置方式保持/etc/network/interfaces不变, 只需在/etc/dhcpcd.conf末尾添加

 
# Static IP configuration
eth0

192.168.1.1
=255.255.255.0
 
wlan0

192.168.1.1
=255.255.255.0
 

 

重新启动即可(reboot)

192.168.1.200是固定ip

相关文章:

猜你喜欢
相关资源
相似解决方案