标签:style color sp on bs ad as res nbsp
$sudo vi /etc/network/interfaces
原有内容只有如下两行:
auto lo
iface lo inet loopback
向末尾追加以下内容:
auto eth0
iface eth0 inet static
address 192.168.0.33
gateway 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
然后保存退出;
$sudo vi /etc/resolv.conf
想末尾追加如下内容:
nameserver 192.168.0.10
然后保存退出。
$sudo ipdown eth0
$sudo ipup eth0
$ifconfig
标签:style color sp on bs ad as res nbsp
原文地址:http://www.cnblogs.com/muzhongjiang/p/4073762.html