ºìÁªLinuxÃÅ»§
Linux°ïÖú
µ±Ç°Î»ÖÃ: ºìÁªLinuxÃÅ»§ > Ubuntu

ubuntu ÃüÁîÐз½Ê½ÅäÖÃÍøÂç

·¢²¼Ê±¼ä:2007-07-17 10:21:00À´Ô´:ºìÁª×÷Õß:History
·Ç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
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 3 ÌõÆÀÂÛ

  1. zym0000 ÓÚ 2014-06-06 13:19:53·¢±í:

    ÐÂÊÖÕýÐèÒª¡£

  2. fengcloud ÓÚ 2014-04-20 12:58:15·¢±í:

    ÐÞ¸Ä/etc/resolv.confÖØÆôºóÎÞÓÃ,¸ÃÎļþÊÇÓ³Éä

  3. qxfsy ÓÚ 2013-12-27 09:21:35·¢±í:

    ºÜºÃµÄ