·ÇrootÓû§ÔÚÿÌõÃüÁîÇ°¼Ó sudo
ÅäÖþ²Ì¬IPµØÖ·
vi /etc/network/interfaces
ÄÚÈÝÈçÏ£º
auto eth0 ##Ó¦¸ÃÊÇÆôÓõÚÒ»¿éÍø¿¨µÄÒâ˼
ifconf eth0 inet static
address 192.168.0.2 ##IPµØÖ·
netmask 255.255.255.0 ##×ÓÍøÑÚÂë
gateway 192.168.0.1 ##Íø¹Ø
ÅäÖÃDNS
vi /etc/resolv.conf
Ôö¼ÓÄÚÈÝ£º
nameserver 61.177.7.1
ÅäÖÃÍø¹Ø
route add default gw 192.168.0.1
ÖØÐÂÆô¶¯ÍøÂçÅäÖÃ
/etc/init.d/networking restart
zym0000 ÓÚ 2014-06-06 13:19:53·¢±í:
ÐÂÊÖÕýÐèÒª¡£
fengcloud ÓÚ 2014-04-20 12:58:15·¢±í:
ÐÞ¸Ä/etc/resolv.confÖØÆôºóÎÞÓÃ,¸ÃÎļþÊÇÓ³Éä
qxfsy ÓÚ 2013-12-27 09:21:35·¢±í:
ºÜºÃµÄ