楼顶的兄弟,用你的方法试过了,不行啊,出错提示是:
Bringing up the eth0 interface ...
SIOCSIFADDR: No such device
eth0: unknown interface: No such device
SIOCSIFNETMASK: No such device
SIOCSITBRDADDR: No such device
eth0:; unknown interface: No such device [FAILED]
Setting up default gateway ...
SIOCADDRT: No such device [FAILED]
如果使用RH中的两个文件启动LFS,它就没有警告了,只出下面的提示:
IP variable missing for ifconfig.eth0,cannot continue
啊,在这说明一下,我现在的环境是刚做好的LFS,没有安装BLFS。
最初由 hmglll 发布 楼顶的兄弟,用你的方法试过了,不行啊,出错提示是:
Bringing up the eth0 interface ...
SIOCSIFADDR: No such device
eth0: unknown interface: No such device
SIOCSIFNETMASK: No such device
SIOCSITBRDADDR: No such device
eth0:; unknown interface: No such device [FAILED]
Setting up default gateway ...
SIOCADDRT: No such device [FAILED]
如果使用RH中的两个文件启动LFS,它就没有警告了,只出下面的提示:
IP variable missing for ifconfig.eth0,cannot continue
啊,在这说明一下,我现在的环境是刚做好的LFS,没有安装BLFS。
So, I looked at the /etc/init.d/ethnet, and some other boot-up scripts.
These scripts only use the ifcfg-eth0 file to get variables from.
And NETMASK=255.255.255.0 was the last, and _really_ last line.
But to get them an active variable you need a 'cr/lf' after it.
After restarting the network, everything worked fine
你看看你的/etc/init.d/ethnet脚本对不对,如果不对的话,从redhat下拷一个试试?