免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3594 | 回复: 0
打印 上一主题 下一主题

linux内核添加 双网卡 驱动问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-11-09 16:57 |只看该作者 |倒序浏览
向内核加入双网卡驱动出现的问题:

linux 2.6.38.2
S3C6410
DM9000aep

单独向内核加入DM9K驱动时 都可以正常使用, 板子可以ping通PC,PC也可能ping通板子

同时加入两个dm9k设备时,两个都可以从板子ping通PC。但从PC却只能ping通板子的eth0,ping不通eth1

小弟新手,请高手们帮忙分析一下什么情况,非常感谢

--------------------------------------------------
[root@zhengzhibo /]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 10:23:45:67:89:AB  
          inet addr:192.168.10.58  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:110 Base address:0x6000

eth1      Link encap:Ethernet  HWaddr 10:23:45:67:89:AB  
          inet addr:192.168.10.59  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:108 Base address:0xe300

lo        Link encap:Local Loopback  
          LOOPBACK  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

[root@zhengzhibo /]# ping -I eth0 192.168.10.77
PING 192.168.10.77 (192.168.10.77): 56 data bytes
64 bytes from 192.168.10.77: seq=0 ttl=64 time=0.490 ms
64 bytes from 192.168.10.77: seq=1 ttl=64 time=0.437 ms
64 bytes from 192.168.10.77: seq=2 ttl=64 time=0.442 ms
64 bytes from 192.168.10.77: seq=3 ttl=64 time=0.441 ms
^C
--- 192.168.10.77 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.437/0.452/0.490 ms

[root@zhengzhibo /]# ping -I eth1 192.168.10.77
PING 192.168.10.77 (192.168.10.77): 56 data bytes
64 bytes from 192.168.10.77: seq=0 ttl=64 time=8.976 ms
64 bytes from 192.168.10.77: seq=1 ttl=64 time=0.509 ms
64 bytes from 192.168.10.77: seq=2 ttl=64 time=0.441 ms
64 bytes from 192.168.10.77: seq=3 ttl=64 time=0.440 ms
^C
--- 192.168.10.77 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.440/2.591/8.976 ms
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP