��, ���ڥ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) [EMAIL PROTECTED]: �j
: �i �b volospin (�b�ӥx�W�H) [EMAIL PROTECTED]: �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]


回复