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

debianÏÂÍø¿¨²ÎÊýµÄÉèÖÃ

·¢²¼Ê±¼ä:2008-07-22 21:20:13À´Ô´:ºìÁª×÷Õß:aibss
×°ºÃµÄϵͳÔÚÆäËü»ú×ÓÉÏÍø¿¨ÎÞ·¨¹¤×÷,¿ÉÒÔ½øÐÐÈçºÎ²Ù×÷:

ÏÈÖ´ÐÐlspciÓÐÎÞÍø¿¨Ó²¼þÐÅÏ¢¡£

ifconfigÎÞ·¨ÏÔʾµ±Ç°Íø¿¨µÄÐÅÏ¢,Ö»ÓÐloÒ»Ïî,È»ºóÖ´ÐÐifconfig eth0»òeth1»òeht2¡­¡­£¬Èç¹ûÓÐÐÅÏ¢µÄ»°£¬ÄÇôִÐÐÏÂÒ»²½¡£

debian°²×°Íê³Éºó£¬Ä¬ÈÏÇé¿öÏÂÊÇ×Ô¶¯»ñÈ¡IPºÍDNSµÄ£¬µ«ÊÇÓÐʱÎÒÃÇÐèÒªÊÖ¹¤Ö¸¶¨IPºÍDNS,Ôõô°ìÄØ£¿¿´ÁËÏÂÃæµÄ˵Ã÷£¬Äã¾Í»áÁË¡£

ÔÚdebianÖУ¬IPµØÖ·µÄÅäÖòÎÊýÔÚ/etc/network/Ŀ¼ÏµÄinterfaceÖУ¬¶øDNSµÄÅäÖòÎÊýÔÚ/etcĿ¼ÏµÄresolv.confÖУ¬ÏÂÃæÊÇÅäÖòÎÊýµÄ˵Ã÷£º

========================

IPµØÖ·ÉèÖÃ: /etc/network/interface

// ¶¯Ì¬DHCP»ñµÃ

# Æô¶¯ÏµÍ³¼¤»îÉ豸
# Loop»Ø»·µØÖ·
auto lo
iface lo inet loopback

# Æô¶¯ÏµÍ³¼¤»îÉ豸
# Íø¿¨eth0ÉèÖÃΪDHCPÀàÐÍ
auto eth0
iface eth0 inet dhcp

// ¾²Ì¬Static»ñµÃ

# Æô¶¯ÏµÍ³¼¤»îÉ豸
# Loop»Ø»·µØÖ·
auto lo
iface lo inet loopback

# Æô¶¯ÏµÍ³¼¤»îÉ豸
# Íø¿¨eth0ÉèÖÃΪStaticÀàÐÍ
auto eth0
iface eth0 inet static

# Ö¸¶¨IPµØÖ·¡¢×ÓÍøÑÚÂë¡¢Íø¹Ø
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.1

×¢£ºÔÚÅäÖÃIPµØÖ·²ÎÊýʱ£¬¡°// ¶¯Ì¬DHCP»ñµÃ¡±ºÍ¡°// ¾²Ì¬Static»ñµÃ¡±Ö»ÄÜÈ¡ÆäÖеÄÒ»ÖÖ£¬¶þÕß²»ÄÜͬʱ´æÔÚ£¬Çмǣ¡£¡£¡

========================

DNS·þÎñÆ÷ÉèÖÃ: /etc/resolv.conf
# ±ØÐëÉèÖÃ.·ñÔòÎÞ·¨·ÃÎÊÈκÎURL

nameserver 202.103.0.117

nameserver 211.95.193.97

========================

ÒÔÉϲÎÊý£¬¿É¸ù¾Ýʵ¼ÊÇé¿ö½øÐÐÐ޸ġ£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ