QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1206|回复: 3

斑竹请看过来:编译内核后ping不通了!!!!!!!!!!!

[复制链接]
发表于 2003-3-24 18:27:23 | 显示全部楼层 |阅读模式
使用gentoo-source的内核2.4.20-r2,编译后能找到网卡,但是ping不到本机以外的ip。用www.kernel.org的内核却没有这个问题。查了一下kernel.log,有如下信息:

Mar 24 17:15:10 localhost kernel: ne2k-pci.c:v1.02 10/19/2000 D. Becker/P. Gortmaker
Mar 24 17:15:10 localhost kernel:   http://www.scyld.com/network/ne2k-pci.html
Mar 24 17:15:10 localhost kernel: eth0: RealTek RTL-8029 found at 0x9000, IRQ 19, 52:54:AB:23:64:12.
Mar 24 17:15:10 localhost kernel: NET4: Linux TCP/IP 1.0 for NET4.0
Mar 24 17:15:10 localhost kernel: IP Protocols: ICMP, UDP, TCP
Mar 24 17:15:10 localhost kernel: IP: routing cache hash table of 4096 buckets, 32Kbytes
Mar 24 17:15:10 localhost kernel: TCP: Hash tables configured (established 32768 bind 65536)
Mar 24 17:15:10 localhost kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Mar 24 17:15:10 localhost kernel: FAT: bogus logical sector size 0
Mar 24 17:15:10 localhost kernel: reiserfs: checking transaction log (device 03:09) ...
Mar 24 17:15:10 localhost kernel: Using r5 hash to sort names
Mar 24 17:15:10 localhost kernel: ReiserFS version 3.6.25
Mar 24 17:15:10 localhost kernel: VFS: Mounted root (reiserfs filesystem) readonly.
Mar 24 17:15:10 localhost kernel: Mounted devfs on /dev
Mar 24 17:15:10 localhost kernel: Freeing unused kernel memory: 264k freed
Mar 24 17:15:10 localhost kernel: Adding Swap: 128484k swap-space (priority -1)
Mar 24 17:15:10 localhost kernel: PCI: No IRQ known for interrupt pin A of device 00:06.0 - using IRQ 5
Mar 24 17:15:10 localhost kernel: PCI: Setting latency timer of device 00:06.0 to 64
Mar 24 17:15:10 localhost kernel: intel8x0: clocking to 47489
Mar 24 17:15:20 localhost kernel: NETDEV WATCHDOG: eth0: transmit timed out
Mar 24 17:15:20 localhost kernel: eth0: Tx timed out, lost interrupt? TSR=0x3, ISR=0xb7, t=102.
Mar 24 17:15:23 localhost kernel: NETDEV WATCHDOG: eth0: transmit timed out
Mar 24 17:15:23 localhost kernel: eth0: Tx timed out, lost interrupt? TSR=0x7, ISR=0x97, t=202.
Mar 24 17:15:25 localhost kernel: NETDEV WATCHDOG: eth0: transmit timed out
Mar 24 17:15:25 localhost kernel: eth0: Tx timed out, lost interrupt? TSR=0x3, ISR=0x3, t=103.
Mar 24 17:15:28 localhost kernel: NETDEV WATCHDOG: eth0: transmit timed out
Mar 24 17:15:28 localhost kernel: eth0: Tx timed out, lost interrupt? TSR=0x3, ISR=0x97, t=103.
Mar 24 17:15:31 localhost kernel: NETDEV WATCHDOG: eth0: transmit timed out
Mar 24 17:15:31 localhost kernel: eth0: Tx timed out, lost interrupt? TSR=0x3, ISR=0x97, t=203.
Mar 24 17:15:33 localhost kernel: NETDEV WATCHDOG: eth0: transmit timed out
Mar 24 17:15:33 localhost kernel: eth0: Tx timed out, lost interrupt? TSR=0x3, ISR=0x97, t=104.
Mar 24 17:15:59 localhost kernel: NETDEV WATCHDOG: eth0: transmit timed out
Mar 24 17:15:59 localhost kernel: eth0: Tx timed out, lost interrupt? TSR=0x3, ISR=0xb7, t=114.
Mar 24 17:16:02 localhost kernel: NETDEV WATCHDOG: eth0: transmit timed out
Mar 24 17:16:02 localhost kernel: eth0: Tx timed out, lost interrupt? TSR=0x3, ISR=0x97, t=214.
Mar 24 17:16:04 localhost kernel: NETDEV WATCHDOG: eth0: transmit timed out
Mar 24 17:16:04 localhost kernel: eth0: Tx timed out, lost interrupt? TSR=0x3, ISR=0x97, t=114.

真是非常奇怪,照理说我的配置应该没什么问题啊,用www..org上的内核编译完全没问题的。
请帮忙看看怎么回事。
发表于 2003-3-24 21:13:36 | 显示全部楼层
不是内核问题,可能是网卡的驱动模块没有用对,可以把所有3个RTL的驱动都编成模块,都试一试.
回复

使用道具 举报

发表于 2003-3-25 14:06:10 | 显示全部楼层
不止一个人碰到了这个问题了。。。

配置文件的问题
编辑 /etc/conf.d/net ,iface_eth0="dhcp" 并注释掉其它内容,然后 /etc/init.d/net.eth0 start .
如果能运行的话就 rc-update add net.eth0 defalut。
核心的问题
打开 Networking options -> Socket Filtering

如果都不行的话,请您把核心配置文件以附件形式贴出来一下
回复

使用道具 举报

 楼主| 发表于 2003-3-29 00:53:08 | 显示全部楼层

内核编译应该没问题的

再一次编译内核,按照上面的启动eth0,问题依旧。但是使用了没有任何补丁的内核却没这个问题。
我的网卡配置是没有问题的,用ifconfig查看我的ip也是没问题的,上面斑竹所说的我也编进内核了。就是不行,难道gentoo打过补丁的内核会有问题吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-5 18:24 , Processed in 0.041082 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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