LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2065|回复: 21

关于eth0的问题

[复制链接]
发表于 2002-12-19 08:56:07 | 显示全部楼层 |阅读模式
我的LFS启动时出现下列错误:
Bringing up the eth0 interface ...
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth0 unknown interface: No such device                       [FAILED]
结束时,现在要按键才能重启或关机了,它的提示是:
modprobe: modprobe: Can't locate module eth0
eth0: unknown interface: No such device                      [FAILED]
You should not be reading this error message, It meas that an unforseen error took place in /etc/rc.d/rc6.d/K80network, wich exited with a return ualue of 255
当我想设置时出现下列错误:
[root@/]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:10:B5:94:0A:A7
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:438 errors:0 dropped:0 overruns:0 frame:0
          TX packets:455 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:373944 (365.1 Kb)  TX bytes:108192 (105.6 Kb)
          Interrupt:11 Base address:0xb000

lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:84 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5630 (5.4 Kb)  TX bytes:5630 (5.4 Kb)

ppp0      Link encapoint-to-Point Protocol
          inet addr:61.145.128.51  P-t-P:218.17.90.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:382 errors:0 dropped:0 overruns:0 frame:0
          TX packets:395 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:362111 (353.6 Kb)  TX bytes:95842 (93.5 Kb)
那位兄弟成功在LFS下配置过eth0的,请指教!
发表于 2002-12-19 14:33:46 | 显示全部楼层
你这不是有eth0了么???
这个很奇怪

如果把相应的驱动编译到内核里,那么就不需要任何配置
(前提pci网卡)
如果编译成内核
在/etc/modules.conf
加了一个
alias eth0 xxx
xxx就是相应的模块名,同样也没问题
这两种方法我都试过了,没有问题

你出现的错误就是没找到驱动的原因
要么是没编译到内核,要么还没把模块加载到内核产生的
至于为什么ifconfig里面有个eth0,那得看你做什么了
发表于 2002-12-19 14:53:12 | 显示全部楼层
重新编译内核支持你的网卡。
 楼主| 发表于 2002-12-20 11:28:37 | 显示全部楼层
两位,我编译了N次内核了,但还是不行,我的网卡是8139 的,贴上我的/lfs/etc/modules.conf:
alias parport_lowlevel parport_pc
alias eth0 8139too
alias sound-slot-0 es1371
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias usb-controller usb-uhci
alias char-major-195 NVdriver
发表于 2002-12-20 12:18:47 | 显示全部楼层
那就不清楚了,没用过这个网卡,
你直接
modprobe 8139too
有什么提示??
发表于 2002-12-20 14:03:45 | 显示全部楼层
我编译内核时看到了有8139的选项,默认是没有选中的,你把它编译进内核看看
发表于 2002-12-20 14:28:28 | 显示全部楼层
这里其实有一个问题,就是怎样在LFS上解决问题。在很多情况下,你原来的发行版可以提供很多重要的信息。比如,你在原来的发行版里:
lsmod
看看是哪些内核模块在工作,就可以把相应的改动放到LFS里。其实硬件的问题在哪个系统里都是一样的。
 楼主| 发表于 2002-12-20 18:36:04 | 显示全部楼层

在LFS下;

root@/cvs/libgtop-2.0.0]# lsmod
Module                  Size  Used by    Tainted: P
ppp_synctty             7936   0  (unused)
ppp_async               9440   1
ppp_generic            24380   3  [ppp_synctty ppp_async]
slhc                    6756   0  [ppp_generic]
sr_mod                 18168   0  (autoclean)
es1371                 30760   0  (autoclean)
ac97_codec             13416   0  (autoclean) [es1371]
gameport                3412   0  (autoclean) [es1371]
soundcore               6500   4  (autoclean) [es1371]
agpgart                42944   3  (autoclean)
nvidia               1592128  10  (autoclean)
parport_pc             19108   1  (autoclean)
lp                      8996   0  (autoclean)
parport                37152   1  (autoclean) [parport_pc lp]
autofs                 13348   0  (autoclean) (unused)
8139too                17704   1
mii                     2156   0  [8139too]
ipt_REJECT              3736   6  (autoclean)
iptable_filter          2412   1  (autoclean)
ip_tables              14840   2  [ipt_REJECT iptable_filter]
ide-scsi               10512   0
scsi_mod              107240   2  [sr_mod ide-scsi]
ide-cd                 33608   0
cdrom                  33696   0  [sr_mod ide-cd]
mousedev                5524   0  (unused)
keybdev                 2976   0  (unused)
hid                    22244   0  (unused)
input                   5920   0  [mousedev keybdev hid]
usb-uhci               26188   0  (unused)
usbcore                77056   1  [hid usb-uhci]
ext3                   70400   3
jbd                    52212   3  [ext3]
在RH下:
root@Hong root]# root@/cvs/libgtop-2.0.0]# lsmod
bash: root@/cvs/libgtop-2.0.0]#: No such file or directory
[root@Hong root]# Module                  Size  Used by    Tainted: P
bash: Module: command not found
[root@Hong root]# ppp_synctty             7936   0  (unused)
bash: syntax error near unexpected token `('
[root@Hong root]# ppp_async               9440   1
bash: ppp_async: command not found
[root@Hong root]# ppp_generic            24380   3  [ppp_synctty ppp_async]
bash: ppp_generic: command not found
[root@Hong root]# slhc                    6756   0  [ppp_generic]
bash: slhc: command not found
[root@Hong root]# sr_mod                 18168   0  (autoclean)
bash: syntax error near unexpected token `('
[root@Hong root]# es1371                 30760   0  (autoclean)
bash: syntax error near unexpected token `('
[root@Hong root]# ac97_codec             13416   0  (autoclean) [es1371]
bash: syntax error near unexpected token `('
[root@Hong root]# gameport                3412   0  (autoclean) [es1371]
bash: syntax error near unexpected token `('
[root@Hong root]# soundcore               6500   4  (autoclean) [es1371]
bash: syntax error near unexpected token `('
[root@Hong root]# agpgart                42944   3  (autoclean)
bash: syntax error near unexpected token `('
[root@Hong root]# nvidia               1592128  10  (autoclean)
bash: syntax error near unexpected token `('
[root@Hong root]# parport_pc             19108   1  (autoclean)
bash: syntax error near unexpected token `('
[root@Hong root]# lp                      8996   0  (autoclean)
bash: syntax error near unexpected token `('
[root@Hong root]# parport                37152   1  (autoclean) [parport_pc lp]
bash: syntax error near unexpected token `('
[root@Hong root]# autofs                 13348   0  (autoclean) (unused)
bash: syntax error near unexpected token `('
[root@Hong root]# 8139too                17704   1
bash: 8139too: command not found
[root@Hong root]# mii                     2156   0  [8139too]
bash: mii: command not found
[root@Hong root]# ipt_REJECT              3736   6  (autoclean)
bash: syntax error near unexpected token `('
[root@Hong root]# iptable_filter          2412   1  (autoclean)
bash: syntax error near unexpected token `('
[root@Hong root]# ip_tables              14840   2  [ipt_REJECT iptable_filter]
bash: ip_tables: command not found
[root@Hong root]# ide-scsi               10512   0
bash: ide-scsi: command not found
[root@Hong root]# scsi_mod              107240   2  [sr_mod ide-scsi]
bash: scsi_mod: command not found
[root@Hong root]# ide-cd                 33608   0
bash: ide-cd: command not found
[root@Hong root]# cdrom                  33696   0  [sr_mod ide-cd]
bash: cdrom: command not found
[root@Hong root]# mousedev                5524   0  (unused)
bash: syntax error near unexpected token `('
[root@Hong root]# keybdev                 2976   0  (unused)
bash: syntax error near unexpected token `('
[root@Hong root]# hid                    22244   0  (unused)
bash: syntax error near unexpected token `('
[root@Hong root]# input                   5920   0  [mousedev keybdev hid]
bash: input: command not found
[root@Hong root]# usb-uhci               26188   0  (unused)
bash: syntax error near unexpected token `('
[root@Hong root]# usbcore                77056   1  [hid usb-uhci]
bash: usbcore: command not found
[root@Hong root]# ext3                   70400   3
bash: ext3: command not found
[root@Hong root]# jbd                    52212   3  [ext3]
 楼主| 发表于 2002-12-20 18:38:46 | 显示全部楼层

SORRY,在RH下是这样:

[root@Hong root]# lsmod
Module                  Size  Used by    Tainted: P
ppp_synctty             7936   0  (unused)
ppp_async               9440   1
ppp_generic            24380   3  [ppp_synctty ppp_async]
slhc                    6756   0  [ppp_generic]
sr_mod                 18168   0  (autoclean)
es1371                 30760   0  (autoclean)
ac97_codec             13416   0  (autoclean) [es1371]
gameport                3412   0  (autoclean) [es1371]
soundcore               6500   4  (autoclean) [es1371]
agpgart                42944   3  (autoclean)
nvidia               1592128  10  (autoclean)
parport_pc             19108   1  (autoclean)
lp                      8996   0  (autoclean)
parport                37152   1  (autoclean) [parport_pc lp]
autofs                 13348   0  (autoclean) (unused)
8139too                17704   1
mii                     2156   0  [8139too]
ipt_REJECT              3736   6  (autoclean)
iptable_filter          2412   1  (autoclean)
ip_tables              14840   2  [ipt_REJECT iptable_filter]
ide-scsi               10512   0
scsi_mod              107240   2  [sr_mod ide-scsi]
ide-cd                 33608   0
cdrom                  33696   0  [sr_mod ide-cd]
mousedev                5524   0  (unused)
keybdev                 2976   0  (unused)
hid                    22244   0  (unused)
input                   5920   0  [mousedev keybdev hid]
usb-uhci               26188   0  (unused)
usbcore                77056   1  [hid usb-uhci]
ext3                   70400   3
jbd                    52212   3  [ext3]
[root@Hong root]#
发表于 2002-12-20 18:39:46 | 显示全部楼层
呵呵,你在干嘛
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表