免费注册 查看新帖 |

Chinaunix

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

redhat as4 u2 双网卡奇怪问题?! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-24 16:56 |只看该作者 |倒序浏览
本人在redhat as4 u2环境下配置双网卡PPPOE上网,两块3COM网卡分别被系统识别为eth0和eth1,分别绑定一个同一IP子网地址。奇怪的问题是,客户端只能ping通eth0的IP地址,ping eth1不通。但是如果ifdown把eth0关闭后,马上可以ping通eth1。这时候再ifup将eth0启动后,两块网卡均能正常工作。需要说明的是网卡的物理特征良好,也跟PCI插槽的次序无关(已更换插槽试验过)。
不知道各位是否遇见过这种情况,怎么解决?谢谢!

论坛徽章:
0
2 [报告]
发表于 2006-05-24 17:15 |只看该作者
网卡不能绑定同一网段的IP,如果这样的话,只能有一个可以访问

论坛徽章:
0
3 [报告]
发表于 2006-05-24 17:29 |只看该作者
刚才又试验了一把,将IP地址清除,或者绑定非同一IP子网的地址,网卡的工作状态都正常。另外,回复楼上的,绑定同一IP子网地址是没有问题的。不过就是在启动的时候只能访问eth0了,至于为什么down了在up起来就两个都能访问,就比较奇怪了。猜测可能跟网卡arp解析有关,有可能在双网卡内部形成了一个环路。

论坛徽章:
0
4 [报告]
发表于 2006-05-24 17:52 |只看该作者
你访问不正常的时候用route 看看路由表发上来才知道的~

论坛徽章:
0
5 [报告]
发表于 2006-05-24 17:59 |只看该作者
这个时候跟route表没有关系,是同一IP子网。eth0->192.168.0.1/24, eth1->192.168.0.2/24,客户机器ip地址192.168.0.5/24网关IP->192.168.0.1。ping eth0 OK,ping eth1 time out,如果shutdown eth0,ping eth1 ok,再up eth0,ping eth0 和eth1都OK。

论坛徽章:
0
6 [报告]
发表于 2006-05-24 18:05 |只看该作者
你照做了让我看看嘛!

论坛徽章:
0
7 [报告]
发表于 2006-05-24 18:30 |只看该作者
喜欢钻研理论的可以参与讨论一下。:)

CLIENT:
Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : 3Com 3C920 Integrated Fast Ethernet
Controller (3C905C-TX Compatible)
        Physical Address. . . . . . . . . : 00-0B-DB-03-6E-83
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 172.168.0.2
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 172.168.0.99

C:\Documents and Settings\JACK>arp -a
No ARP Entries Found

C:\Documents and Settings\JACK>ping 3.3.3.3

Pinging 3.3.3.3 with 32 bytes of data:

Control-C
^C
C:\Documents and Settings\JACK>arp -a

Interface: 172.168.0.2 --- 0x4
  Internet Address      Physical Address      Type
  172.168.0.99          00-10-5a-75-9a-5a     dynamic
  
  
  
  SERVER:
[root@redhatas4 ~]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
172.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
172.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1

[root@redhatas4 ~]# arp -a
? (172.168.0.2) at 00:0BB:03:6E:83 [ether] on eth1
? (172.168.0.2) at <incomplete> on eth0

[root@redhatas4 ~]# ping 172.168.0.2
PING 172.168.0.2 (172.168.0.2) 56(84) bytes of data.
From 172.168.0.100 icmp_seq=1 Destination Host Unreachable
From 172.168.0.100 icmp_seq=2 Destination Host Unreachable
From 172.168.0.100 icmp_seq=3 Destination Host Unreachable

论坛徽章:
0
8 [报告]
发表于 2006-05-24 18:37 |只看该作者
[root@redhatas4 tmp]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:50:04:1D:5D:19  
          inet addr:172.168.0.100  Bcast:172.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::250:4ff:fe1d:5d19/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1214 errors:0 dropped:0 overruns:0 frame:0
          TX packets:620 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:211670 (206.7 KiB)  TX bytes:113725 (111.0 KiB)
          Interrupt:10 Base address:0xe800

eth1      Link encap:Ethernet  HWaddr 00:10:5A:75:9A:5A  
          inet addr:172.168.0.99  Bcast:172.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::210:5aff:fe75:9a5a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:688 errors:0 dropped:0 overruns:0 frame:0
          TX packets:593 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:118085 (115.3 KiB)  TX bytes:133636 (130.5 KiB)
          Interrupt:5 Base address:0xe400
其实,从网卡的状态来看,彼此都已经了解对方的mac和IP了,就是不知道为什么不能通讯,eth0在这中间不知道起了什么样的作用。

论坛徽章:
0
9 [报告]
发表于 2006-05-29 15:53 |只看该作者

我也碰到了这个问题

我昨天也碰到了这问题,不知道有没有解决的办法。
RHEL4U2
二块网卡
eth0 172.18.12.240
eth1 172.18.12.230

客户端
172.18.12.220

状况说明:
1、其中eth0连的交换机,接交换机上的其他机器能PING通eth0(172.18.12.240)
2、eth1直连的客户端机器,但他们之间无法PING通,但是如果把ifdown eth0后,他们之间就可以PING通了
3、在不改变他们IP段的情况下有解决方法吗?谢谢了

论坛徽章:
0
10 [报告]
发表于 2006-05-30 15:51 |只看该作者
系统启动的时候次序是先UP eth0,再UP eth1。解决的办法就是保证跟client连接的网扣配置成eth0,只要eth0UP了,就可以ping通,再ping eth1就没有问题,反过来就不行了。不知道是不是u2的bug,其他版本的linux没有试过。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP