[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: newbie... 基本上網設定



ÁÂ, ¦ý§Ú¥i¥H¦b¨º¬Ý¨ì¥H¤U¸ê®Æ©O?

§Úªº Learning Debian GNU/Linux - O'Reilly ¦³¥H¤U¸ê®Æ:

.. typical /etc/init.d/network file.

#! /bin/sh
ifconfig lo 127.0.0.1
route add -net 127.0.0.0
IPADDR=192.168.1.10
NETMASK=255.255.255.0
BROADCAST=192.168.1.255
GATEWAY=192.168.1.1
ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add default gw ${GATEWAY} metric 1

¦Ó Mastering Linux - Sybex ¦³¥H¤U¸ê®Æ:

start-up scripts, such as /etc/rc/d/rc.local...  typical rc.local file

/sbin/ifconfig eth0 100.100.100.10 netmask 255.255.255.0 up
/sbin/ifconfig lo 127.0.0.1 up
/sbin/route add -host 127.0.0.1 lo
/sbin/route add -net 100.100.100.0 netmask 255.255.255.0 eth0
/sbin/route add default gw 100.100.100.1 eth0

¥H¤W Mastering Linux ªº §Ú¦³¸Õ¹L work (¨C­Ó command ¥´)
¦ý´N·Qª¾§A¥´ªº Setting ¬O±q¦ó¨Ó...

¬O¤£¬O specific Debian ªº?

¡i ¦b evil (Lamer) ªº¤j§@¤¤´£¨ì: ¡j
: ¡i ¦b volospin (¥b­Ó¥xÆW¤H) ªº¤j§@¤¤´£¨ì: ¡j
: : ÁÂ, ¨ºÀ³¦b¨º­Ó file add ¨º¨Ç¦æ¤~¥i¥H¨C¦¸ autorun, ¤£¥Î¦¸¦¸¥´©O?
: /etc/network/interfaces
: iface lo inet loopback
: iface eth0 inet static
:   address 192.168.0.220
:   netmask 255.255.255.0
:   gateway 192.168.0.1
: Copy and paste pls.

--
¡° ¨Ó·½ ¡À e-Fever BBS ¢I bbs.e-fever.org ¡À [From: 202.71.197.38]



Reply to: