Re: newbie... 基本上网设定
谢, 但我可以在那看到以下资料呢?
我的 Learning Debian GNU/Linux - O'Reilly 有以下资料:
.. 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 有以下资料:
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
以上 Mastering Linux 的 我有试过 work (每个 command 打)
但就想知你打的 Setting 是从何来...
是不是 specific Debian 的?
【 在 evil (Lamer) 的大作中提到: 】
: 【 在 volospin (半个台湾人) 的大作中提到: 】
: : 谢, 那应在那个 file add 那些行才可以每次 autorun, 不用次次打呢?
: /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
: [1mCopy and paste pls.[0m
--
[1;35;40m※ [33m来源 [30m□ [32me-Fever BBS @ bbs.e-fever.org[30m □ [1;35m[[33mFrom: 202.71.197.38[35m][m
--
| This message was re-posted from debian-chinese-big5@lists.debian.org
| and converted from big5 to gb2312 by an automatic gateway.
Reply to: