论坛风格切换切换到宽版
  • 1241阅读
  • 7回复

[问题求助]还是网卡做bond的问题,这个问题有难度,喜欢挑战的进来看看 [复制链接]

上一主题 下一主题
离线guanchutao.
 
发帖
2082
C币
-152285
威望
374
贡献值
1
银元
-2
铜钱
4620
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
问题背景:
1.、一个项目里若干台dell2950服务器,若干台dell685.0服务器,所有操作系统均为redhat as4 u5的版本.
2、出于性能考虑网络链路准备采用冗余方式,即两台cisco3560交换机.,服务器双网卡做bond,两块网卡分别接不通的交换机统一.的端口,比如a机两个.网口a1和a2分别接switch1和switch2的1口。             汽车

出现状况:
1、所有2950服务.器用内置网口做的bond.都出现了如下情况    外汇
[root@XTSER log]# grep bond1 ./var/log/messages.服务器
A.ug 30 13:38:00 XTSER kerne.l: bonding: bond1: released all slaves.
Aug 30 1.3:38:00 XTSER k.ernel: ADDRCONF(NETDEV_UP): bond1: link is not ready域名
Aug 30 13:38:00 X.TSER kernel: ADDRCONF(NETDEV_UP): bond1: .link is not ready[成人用品]
Aug 30 13:38:04 XTSER kernel: bonding: b.ond1: enslaving eth2 as a .ba.ckup interface with a down link.              乙肝
Aug 30 13:38:05 XTSER kern.el: bonding: bond1: enslaving eth3 as a backup i..nterface with a down link.    美容
Aug 30 13:38:07 XTS.ER kernel: b.onding: bond1: link status definitely up fo.r interface eth3.外贸
Aug 30 13:38:07. XTSER kernel: bonding: bond1: makin.g interface eth3 the new active on.e..
Aug 30 13:38:07 XTSER kernel: bonding: bond1: first active.. interface up!
Aug 30 13:38:07 XTSER kernel: bonding: bond1: link status de.finit.el.y up for interface eth2.服务器
A.ug 30 13:38:.08 XTSE.R kernel: ADDRCONF(NETDEV_CHANGE): bond1: link becomes ready.
Aug 3.0 13:38:08 XTSER kernel: bond1: duplicate ad.dress detected!外贸
Aug 30 13:40:53 XTSER .kern.el: bonding: bond1: released all slaves外贸
Aug 30 13:40:53 XTSER. kernel: ADDRCONF(NETD.EV_UP): bond1: link is not ready服务器
Aug 30 .13:40:53 XTSE.R kernel: ADDRCONF(NETDEV_UP): bond1: link is not ready          婚庆
Aug 30 13:40:57 XT.SE..R kernel: bonding: bond1: enslaving eth2 as a backup interface with a down link.外贸
Aug 30 13:40:57 XTSE.R ke.rnel: bonding: bond1: enslaving eth3 as a backup interface. with a down link.(广告)
Aug 30 13:40:59 XTSER kernel: bonding: bond1: link sta.tus definitel.y up fo.r interface eth2.[成人用品]
Aug 30 13:.40:59 XTSER kernel: bonding:. bond1: link status defi.nitely up for interface eth3.          婚庆
Aug .30 13:40:59 XTSER kernel: bonding: bond1: m.aking interface eth2 th.e new active one.--- 印刷
Aug 30 13:40:59 XTSER ke.r.nel: bonding: bond1: first active interface up!           建材
Aug 30 13:41:00 XTSE.R. kernel: ADDRC.ONF(NETDEV_CHANGE): bond1: link becomes ready.
Aug. 30 13:54:53 XTSER kernel: bondin.g: bond1: released all slaves[成人用品]
Aug 30 13:54:53 XTSER kernel.: ADDRCONF(NETDEV_UP): bon.d1: link is not ready.
Au.g 30 13:54:53 XTSER kernel: ADDRCONF(NETDEV_UP): bond1: link is n.ot ready.

也就是bond会不定时的release网卡,有..时候几个小时一次,有时候几天一次    美容

而.且用mii-tool命令查看bond           建材
[root@XTSER ~]#. mii-t.ool bond0外贸
bond0: 10. Mb.it, half duplex, link ok.
显示.的10兆半双工模式,.要知道这个可是千兆网卡啊,交换机也是百兆自适应的。电脑



请高手们分析一下出现以上问题的原因在什么地方。另外我发现2950内置网卡做的bond都出现了这种情况2950的内置.网卡是博科570.8(广告)

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线ms1029.
发帖
2173
C币
-234903
威望
422
贡献值
1
银元
-3
铜钱
4955
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
首先要做绑定应该链接同一交换机,否则会出现包的乱序等问题。
其次绑定的网卡型号速率双工方式应该完全一致。
最后还需要配置好绑定方式是,也可以说具体的算法。

离线korey.
发帖
2026
C币
-235337
威望
391
贡献值
1
银元
-3
铜钱
4680
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
连同一台交换机那双链路还有什么意义啊?我用的是主备的模式,就是要解决网络单点故障才采用这种模式的,其次,网卡都是dell内置的博科5708,网卡都是缺省的自适应设置不存在网卡不一致的情况
bond设置参数如下
/etc/modprobe.conf
install bond0 /sbin/modprobe bonding -o bond0 miimon=100 mode=1
install bond1 /sbin/modprobe bonding -o bond1 miimon=100 mode=1


Ethernet Channel Bonding Driver: v2.6.3-rh (June 8, 2005)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:15:17:29:a8:b6

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:15:17:29:a8:b7

离线janezhang.
发帖
2088
C币
-235397
威望
404
贡献值
1
银元
-2
铜钱
4730
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
要不,你交换机和PC间都强制以下速率看看.

发帖
2025
C币
-235323
威望
401
贡献值
1
银元
-2
铜钱
4701
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13
bond1: duplicate address detected!
错误很明显了.好好看看bond文档.
HA Link Monitoring Selection for Multiple Switch Topology
----------------------------------------------------------------

        The choice of link monitoring ultimately depends upon your
switch.  If the switch can reliably fail ports in response to other
failures, then either the MII or ARP monitors should work.  For
example, in the above example, if the "port3" link fails at the remote
end, the MII monitor has no direct means to detect this.  The ARP
monitor could be configured with a target at the remote end of port3,
thus detecting that failure without switch support.

        In general, however, in a multiple switch topology, the ARP
monitor can provide a higher level of reliability in detecting end to
end connectivity failures (which may be caused by the failure of any
individual component to pass traffic for any reason).  Additionally,
the ARP monitor should be configured with multiple targets (at least
one for each switch in the network).  This will insure that,
regardless of which switch is active, the ARP monitor has a suitable
target to query.

[ 本帖最后由 wysilly 于 2007-8-31 22:49 编辑 ]

发帖
2087
C币
-235584
威望
384
贡献值
2
银元
-2
铜钱
4678
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-13


QUOTE:原帖由 wysilly 于 2007-8-31 22:33 发表
bond1: duplicate address detected!
错误很明显了.好好看看bond文档.
HA Link Monitoring Selection for Multiple Switch Topology
----------------------------------------------------------------

...

还请明示啊,现在我也在考虑是否是交换机上设置的有些什么问题。不过仍然没有找到问题的根本原因。

离线cnstwb.
发帖
2149
C币
-235019
威望
398
贡献值
1
银元
-2
铜钱
4856
人人网人气币
0
只看该作者 6楼 发表于: 2010-04-13
关于这个问题,楼主有没有进展啊。

我们这边也遇到类似情况,不过我们是mode=0,想提升网卡速率。不过我们的是化为8500的交换机,发现华为不支持跨交换机做链路聚合。

问题是我这边千兆的网卡也出现mii-tool显示的是10m半双工啊,很奇怪

离线b88954966.
发帖
1978
C币
-235378
威望
361
贡献值
1
银元
-4
铜钱
4576
人人网人气币
0
只看该作者 7楼 发表于: 2010-04-13
找了网上一些资料,认为mii-tool报的速度是不准确的,可以不用理会!
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个