标签:
1. 编辑/etc/network/interfaces
vim /etc/network/interfaces
2.将以下五项添加到/etc/network/interfaces中
3. 修改后文件如下
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
# The primary network interface
iface eth0 inet static
address 192.168.1.8
gateway 192.168.1.1
netmask 255.255.255.0
dns-nameservers 223.5.5.5 223.6.6.6
4. 重启网络服务
service networking restart
标签:
原文地址:http://www.cnblogs.com/haseo/p/4774268.html