|
|

楼主 |
发表于 2007-8-21 22:51:13
|
显示全部楼层
Post by tell
ln -s net.lo net.eth1 —— 这一步一般不需要,网卡驱动配好后一般自动出现/etc/init.d/net.eth0
还有,你是在哪里执行的上述命令?/etc/init.d还是/etc/runlevels/{boot,default}?
/etc/init.d中存放一些脚本,可以用于开机时执行,但这些脚本要链接到/etc/runlevels下开机时才会真正执行,
rc-update所做的就是这件事,添加/删除/etc/runlevels下的链接而已
redhat有/etc/rc.d/rc.{0,1,2,3,4,5,6}这几个目录,这是经典的启动目录排列方式,
gentoo用了自己的一套,只剩下/etc/runlevels/{boot,default,nonetwork,single}
好像新版ubuntu也用了它自己的一套启动方式
需要,如果你有第二块网卡的话,比如一块eth0,一块eth1,默认的net.eth0可能已经存在/etc/init.d下,但是eth1是绝对不存在的,这一点我已经反复把gentoo装了不下20编
在哪里执行这些命令?我不懂你的意思,我用命令时全部写的绝对路径,,我现在奇怪的就在这,rc-dpdate仅仅是添加了一个链接,为什么这个链接被删除后他代表的东西还能启动呢,虽然从启动命令行的滚动来看不是在default组启动的
/etc/rc.d/rc.{0,1,2,3,4,5,6}
这是不是linux的通用启动目录,是不是说记录在其中的可以在系统启动时启动,真是的话我要好好研究一下了,gentoo手册上没有提到这点
Post by SDE
也许跟这里有关
/etc/conf.d/rc
# RC_NET_STRICT_CHECKING allows some flexibility with the 'net' service.
# The following values are allowed:
# none - The 'net' service is always considered up.
# no - This basically means that at least one net.* service besides net.lo
# must be up. This can be used by notebook users that have a wifi and
# a static nic, and only wants one up at any given time to have the
# 'net' service seen as up.
# lo - This is the same as the 'no' option, but net.lo is also counted.
# This should be useful to people that do not care about any specific
# interface being up at boot.
# yes - For this ALL network interfaces MUST be up for the 'net' service to
# be considered up.
RC_NET_STRICT_CHECKING="no"
看明白了,难道真是这个,要去研究一下
Post by tell
我是怀疑你
rc-update add net.eth1 boot
了
那么
rc-upade del net.eth1 default
自然没用,
所以,贴下
rc-update show
还有你rc-upade写错了,我从你那段拷下来发现*_*
这是不可能的,为了验证,我亲自去/etc/runlevels下的default目录和boot目录确认过 |
|