Ubuntu16.04更改静态ip

匿名 (未验证) 提交于 2019-12-02 23:39:01

Ubuntu16.04更改静态ip

进入sudo gedit /etc/network/interfaces

interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto ens33
iface ens33 inet static
address 192.168.8.213
netmask 255.255.255.0
gateway 192.168.8.1dns-nameserver 114.114.114.114


更改后可能会有警告,可以不用管它

重启命令:
sudo /etc/init.d/networking force-reload(这个是重新加载里面的命令,之前没有用 force-reload配了好多次都不行,这个是重点!!!)
sudo /etc/init.d/networking restart(重启网络)

下面与ubuntu无关

					开发板ip配置 

=====================================================================================================================================

vi /etc/profile

vi /etc/resolv.conf

文章来源: https://blog.csdn.net/weixin_45217198/article/details/91398070
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!