您的位置:首页 > 其它

Debian 修改网卡IP地址

2013-09-11 08:38 411 查看
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 #重启网络服务
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: