1.网络配置文件/etc/network/interfaces
vim /etc/network/interfaces
重启网络生效
sudo service networking restart
sudo ifdown eth0 #关闭eth0端口
sudo ifup eth0 #启动 eth0 端口
2.域名服务器配置文件/etc/resolv.conf
1.网络配置文件/etc/network/interfaces
vim /etc/network/interfaces
重启网络生效
sudo service networking restart
sudo ifdown eth0 #关闭eth0端口
sudo ifup eth0 #启动 eth0 端口
2.域名服务器配置文件/etc/resolv.conf