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