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
//重新启动
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
//重新启动