Debian 修改网卡IP地址方法如下:
vim /etc/network/interface #文件内容如下 auto eth0 iface eth0 inet static address 192.168.5.2 netmask 255.255.255.0 gateway 192.168.5.1
如果无法打开网页修改下面的文件,设置DNS服务器
vim /etc/resolv.conf nameserver 114.114.114.114
/etc/init.d/networking restart #重启网络服务
转载于:https://blog.51cto.com/neure/1294065