Äú²é¿´µÄÎÄÕÂÀ´Ô´ÓÚhttp://www.oklinux.cn
¡¡¡¡ÔÚDebianÖÐÍø¿¨µÄÉèÖÿÉÒÔͨ¹ý/etc/network/interfacesÎļþÀ´½øÐУ¬¾ßÌå¿É·ÖΪÈýÖÖ²»Í¬µÄÅäÖ÷½Ê½£ºDHCP×Ô¶¯»ñÈ¡¡¢¾²Ì¬·ÖÅäIPµØÖ·ºÍPPPoE¿í´ø²¦ºÅ¡£¾ßÌåÉèÖÃÈçÏ£º ÔÚ½øÐÐÅäÖÃ֮ǰ£¬Ê×ÏȽøÈë/etc/networkĿ¼ÖУ¬±à¼interfacesÎļþ£º
Íø¿¨Í¨¹ýDHCP×Ô¶¯»ñÈ¡IPµØÖ·
# 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£¨ÅäÖû·»Ø¿Ú£©
# ¿ª»ú×Ô¶¯¼¤lo½Ó¿Ú
auto lo
# ÅäÖÃlo½Ó¿ÚΪ»·»Ø¿Ú
iface lo inet loopback
#
# The primary network interface £¨ÅäÖÃÖ÷ÍøÂç½Ó¿Ú£©
#¿ª»ú×Ô¶¯¼¤»îeth0½Ó¿Ú
auto eth0
#ÅäÖÃeth0½Ó¿ÚΪDHCP×Ô¶¯»ñÈ¡
iface eth0 inet dhcp
Íø¿¨¾²Ì¬·ÖÅäIPµØÖ·
# 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£¨ÅäÖû·»Ø¿Ú£©
# ¿ª»ú×Ô¶¯¼¤lo½Ó¿Ú
auto lo
# ÅäÖÃlo½Ó¿ÚΪ»·»Ø¿Ú
iface lo inet loopback
#
# The primary network interface £¨ÅäÖÃÖ÷ÍøÂç½Ó¿Ú£©
#¿ª»ú×Ô¶¯¼¤»îeth0½Ó¿Ú
auto eth0
#ÅäÖÃeth0½Ó¿ÚΪ¾²Ì¬ÉèÖÃIPµØÖ·
iface eth0 inet static
address 10.16.3.99
netmask 255.255.255.0
network 10.16.3.0
broadcast 10.16.3.255
gateway 10.16.3.1
# dns-* options are implemented by the resolvconf package, if installed£¨DNSÉèÖã©
dns-nameservers 61.153.177.196 61.153.177.197
dns-search fireteam.org
Íø¿¨½øÐÐPPPoE¿í´ø²¦ºÅÅäÖÃ
# 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£¨ÅäÖû·»Ø¿Ú£©
# ¿ª»ú×Ô¶¯¼¤lo½Ó¿Ú
auto lo
# ÅäÖÃlo½Ó¿ÚΪ»·»Ø¿Ú
iface lo inet loopback
#
# The primary network interface £¨ÅäÖÃÖ÷ÍøÂç½Ó¿Ú£©
#¿ª»ú×Ô¶¯¼¤»îeth0½Ó¿Ú
auto eth0
#ÅäÖÃeth0½Ó¿ÚΪ¾²Ì¬ÉèÖÃIPµØÖ·
iface eth0 inet static
address 10.16.3.99
netmask 255.255.255.0
network 10.16.3.0
broadcast 10.16.3.255
ÅäÖÃÍê±Ïºó£¬ÖØÆô¼ÆËã»ú»òÍøÂç·þÎñ¼´¿É½«Íø¿¨ÅäºÃ¡£Èç½øÐÐPPPoE¿í´ø²¦ºÅ£¬¿ÉÔËÐÐpppoeconfÃüÁî½øÐÐÅäÖá£
|