免费注册 查看新帖 |

Chinaunix

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

2个千兆网卡绑bond0 变成10M的问题求大神赐教 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-10-14 16:59 |只看该作者 |倒序浏览
如题:公司服务器2个网卡绑定bond0 ssh连上的时候很卡,检查了一下

[root@ydhl-test1 ~]# mii-tool -v bond0
bond0: 10 Mbit, half duplex, link ok
  product info: vendor 00:01:00, model 0 rev 4
  basic mode:   10 Mbit, half duplex
  basic status: link ok
  capabilities:
  advertising:

bond0日志:
grep bond0 /var/log/messages
Oct 14 22:21:49 ydhl-test1 kernel: bonding: bond0: doing slave updates when interface is down.
Oct 14 22:21:49 ydhl-test1 kernel: bonding: unable to remove non-existent slave em1 for bond bond0.
Oct 14 22:21:50 ydhl-test1 kernel: bonding: bond0: doing slave updates when interface is down.
Oct 14 22:21:50 ydhl-test1 kernel: bonding: unable to remove non-existent slave em2 for bond bond0.
Oct 14 22:21:50 ydhl-test1 kernel: bonding: bond0: Setting MII monitoring interval to 80.
Oct 14 22:21:50 ydhl-test1 kernel: bonding: bond0: setting mode to balance-rr (0).
Oct 14 22:21:50 ydhl-test1 kernel: ADDRCONF(NETDEV_UP): bond0: link is not ready
Oct 14 22:21:50 ydhl-test1 kernel: bonding: bond0: Adding slave em1.
Oct 14 22:21:50 ydhl-test1 kernel: bonding: bond0: Adding slave em2.
Oct 14 22:29:31 ydhl-test1 kernel: bonding: bond0 is being created...
Oct 14 22:29:31 ydhl-test1 kernel: bonding: cannot add bond bond0; already exists
Oct 14 22:29:31 ydhl-test1 kernel: bonding: bond0: Setting MII monitoring interval to 80.
Oct 14 22:29:31 ydhl-test1 kernel: bonding: bond0: setting mode to balance-rr (0).
Oct 14 22:29:31 ydhl-test1 kernel: ADDRCONF(NETDEV_UP): bond0: link is not ready
Oct 14 22:29:31 ydhl-test1 kernel: bonding: bond0: Adding slave em1.
Oct 14 22:29:31 ydhl-test1 kernel: bonding: bond0: enslaving em1 as an active interface with an up link.
Oct 14 22:29:31 ydhl-test1 kernel: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready
Oct 14 22:29:31 ydhl-test1 kernel: bonding: bond0: Adding slave em2.
Oct 14 22:29:31 ydhl-test1 kernel: bonding: bond0: enslaving em2 as an active interface with a down link.
Oct 14 22:29:31 ydhl-test1 kernel: bond0: link status definitely up for interface em2, 1000 Mbps full duplex.
Oct 14 22:29:33 ydhl-test1 avahi-daemon[2765]: Joining mDNS multicast group on interface bond0.IPv4 with address 192.168.71.51.
Oct 14 22:29:33 ydhl-test1 avahi-daemon[2765]: New relevant interface bond0.IPv4 for mDNS.
Oct 14 22:29:33 ydhl-test1 avahi-daemon[2765]: Registering new address record for fe80::baca:3aff:fe5e:8960 on bond0.*.
Oct 14 22:29:33 ydhl-test1 avahi-daemon[2765]: Registering new address record for 192.168.71.51 on bond0.IPv4.
Oct 15 00:10:21 ydhl-test1 avahi-daemon[2765]: Received response from host 192.168.77.95 with invalid source port 3998 on interface 'bond0.0'
Oct 15 00:10:21 ydhl-test1 avahi-daemon[2765]: Received response from host 192.168.77.95 with invalid source port 3998 on interface 'bond0.0'
Oct 15 00:10:22 ydhl-test1 avahi-daemon[2765]: Received response from host 192.168.77.95 with invalid source port 3998 on interface 'bond0.0'
Oct 15 00:10:22 ydhl-test1 avahi-daemon[2765]: Received response from host 192.168.77.95 with invalid source port 3998 on interface 'bond0.0'
Oct 15 00:10:23 ydhl-test1 avahi-daemon[2765]: Received response from host 192.168.77.95 with invalid source port 3998 on interface 'bond0.0'
Oct 15 00:10:23 ydhl-test1 avahi-daemon[2765]: Received response from host 192.168.77.95 with invalid source port 3998 on interface 'bond0.0'
Oct 15 00:10:24 ydhl-test1 avahi-daemon[2765]: Received response from host 192.168.77.95 with invalid source port 3998 on interface 'bond0.0'



[root@ydhl-test1 ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)

Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 80
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: em1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: b8:ca:3a:5e:89:60
Slave queue ID: 0

Slave Interface: em2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: b8:ca:3a:5e:89:61
Slave queue ID: 0

mii-tool -F 100baseTx-Fd bond0
显示没有bond0这个设备
有人知道这个问题的原因和解决方法吗?感激不尽啊

论坛徽章:
0
2 [报告]
发表于 2013-10-14 17:11 |只看该作者
或者有没有类似的帖子贴给我下 谢谢喽

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
3 [报告]
发表于 2013-10-14 18:07 |只看该作者
不采用BOND0的时候,两块网卡单独测试正常吗???
BOND0需要交换机端配合的,你做了吗?

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
4 [报告]
发表于 2013-10-14 18:07 |只看该作者

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
5 [报告]
发表于 2013-10-14 18:08 |只看该作者
大神???????????

论坛徽章:
0
6 [报告]
发表于 2013-10-14 19:16 |只看该作者
HI,你好,交换机没有弄,原来单块网卡的时候没有问题,就是现在,绑定bond0后出现这种状况,可能如你所说是交换机的问题,我在好好看下,谢谢喽。

论坛徽章:
0
7 [报告]
发表于 2013-10-15 10:43 |只看该作者
现在交换机已经做了聚合了 speed 2G full
但是mii-tool -v bond0还是显示10M

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
8 [报告]
发表于 2013-10-15 12:16 |只看该作者
强制,两端同时,试试

论坛徽章:
0
9 [报告]
发表于 2013-10-15 17:25 |只看该作者
HI:非常感谢你的回复,我用mii-tool工具测了还是10M
但是我把交换机端口聚合以后,带宽是增加了的,效果有明显的提升。可能是mii-tool这个工具显示不准确吧!问题算是解决了。

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
10 [报告]
发表于 2013-10-15 18:07 |只看该作者
哦。我那个贴已经讲清楚了。BOND=0需要交换机支持,否则就是你的那个结果,甚至是不通。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP