打开/etc/network/interfaces
命令:sudo vi /etc/network/interfaces
打开是这样的
在最后加上
auto eth0
iface eth0 inet dhcp
设置静态ip
ESC+“:wq”保存退出
最后重启网络
/etc/init.d/networking restart
就好啦
参考:https://blog.csdn.net/qq_40637292/article/details/80861517
打开/etc/network/interfaces
命令:sudo vi /etc/network/interfaces
打开是这样的
在最后加上
auto eth0
iface eth0 inet dhcp
设置静态ip
ESC+“:wq”保存退出
最后重启网络
/etc/init.d/networking restart
就好啦
参考:https://blog.csdn.net/qq_40637292/article/details/80861517
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。