LinuxSir.cn,穿越时空的Linuxsir!

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

网卡问题

[复制链接]
发表于 2007-3-24 06:54:12 | 显示全部楼层 |阅读模式
两个网卡,
  1. # lspci|grep Eth
  2. 00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 7c)
  3. 05:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
复制代码

驱动编到内核里(模块里也试过)。前者这Eth0,,后者是Eth1
  1. # ifconfig
  2. eth0      Link encap:Ethernet  HWaddr 00:16:17:8D:E5:4E  
  3.           inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
  4.           UP BROADCAST MULTICAST  MTU:1500  Metric:1
  5.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  6.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  7.           collisions:0 txqueuelen:1000
  8.           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  9.           Interrupt:23 Base address:0xf800

  10. eth1      Link encap:Ethernet  HWaddr 00:50:BA:42:3C:9F  
  11.           inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
  12.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  13.           RX packets:4425 errors:0 dropped:0 overruns:0 frame:0
  14.           TX packets:4436 errors:0 dropped:0 overruns:0 carrier:0
  15.           collisions:2 txqueuelen:1000
  16.           RX bytes:4261434 (4.0 Mb)  TX bytes:890753 (869.8 Kb)
  17.           Interrupt:18 Base address:0xaf00

  18. lo        Link encap:Local Loopback  
  19.           inet addr:127.0.0.1  Mask:255.0.0.0
  20.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  21.           RX packets:68 errors:0 dropped:0 overruns:0 frame:0
  22.           TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
  23.           collisions:0 txqueuelen:0
  24.           RX bytes:30757 (30.0 Kb)  TX bytes:30757 (30.0 Kb)

  25. ppp0      Link encap:Point-to-Point Protocol  
  26.           inet addr:221.222.78.140  P-t-P:61.51.148.1  Mask:255.255.255.255
  27.           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  28.           RX packets:4393 errors:0 dropped:0 overruns:0 frame:0
  29.           TX packets:4355 errors:0 dropped:0 overruns:0 carrier:0
  30.           collisions:0 txqueuelen:3
  31.           RX bytes:4162638 (3.9 Mb)  TX bytes:785651 (767.2 Kb)
复制代码

pppoe上网,用的是eth1.
现在的问题是一运行amule,过一段时间,或长或短,eth1就不行了,有时不运行amule也会出这个问题。重启服务也不行,内核出错出下:
  1. [20037.323938] NETDEV WATCHDOG: eth1: transmit timed out
  2. [20037.324004] eth1: Tx timed out, lost interrupt? TSR=0x3, ISR=0x3, t=3053.
  3. [20092.212338] NETDEV WATCHDOG: eth1: transmit timed out
  4. [20092.212407] eth1: Tx timed out, lost interrupt? TSR=0x3, ISR=0x3, t=1547.
  5. [20152.047447] NETDEV WATCHDOG: eth1: transmit timed out
  6. [20152.047537] eth1: Tx timed out, lost interrupt? TSR=0x3, ISR=0x3, t=15033.
  7. [20167.145619] NETDEV WATCHDOG: eth1: transmit timed out
  8. [20167.145819] eth1: Tx timed out, lost interrupt? TSR=0x3, ISR=0x3, t=3041.
  9. [20222.009154] NETDEV WATCHDOG: eth1: transmit timed out
  10. [20222.009223] eth1: Tx timed out, lost interrupt? TSR=0x3, ISR=0x3, t=1524.
复制代码

重启系统后正常。
发表于 2007-3-24 21:05:54 | 显示全部楼层
VIA的rhine网卡不要编译到内核里面,把它编译成module,然后在/etc/modules.autoload.d/kernel-2.6把模块名加上。

p.s.:只是个人经验,把网卡编译到内核就是老出问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-25 05:48:20 | 显示全部楼层
Post by akinglinux
VIA的rhine网卡不要编译到内核里面,把它编译成module,然后在/etc/modules.autoload.d/kernel-2.6把模块名加上。

p.s.:只是个人经验,把网卡编译到内核就是老出问题

编译到模块也试过的,出同样的问题。
回复 支持 反对

使用道具 举报

发表于 2007-3-25 11:09:18 | 显示全部楼层
我也碰到类似的问题,流量太凶的时候会有断掉的情况发生。
回复 支持 反对

使用道具 举报

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

本版积分规则

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