Ubuntu 下静态IP修改

 vi /etc/network/interfaces
//IP文件路径

iface lo inet loopback
auto eth3
iface eth3 inet static
address 192.168.1.139
netmask 255.255.255.0
gateway 192.168.1.1
//文件里的内容



sudo /etc/init.d/networking restart
//重新启动
原文地址:https://www.cnblogs.com/qingjoin/p/2341459.html