alphasniper 发表于 2013-10-14 16:59

2个千兆网卡绑bond0 变成10M的问题求大神赐教

如题:公司服务器2个网卡绑定bond0 ssh连上的时候很卡,检查了一下

# 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: Joining mDNS multicast group on interface bond0.IPv4 with address 192.168.71.51.
Oct 14 22:29:33 ydhl-test1 avahi-daemon: New relevant interface bond0.IPv4 for mDNS.
Oct 14 22:29:33 ydhl-test1 avahi-daemon: Registering new address record for fe80::baca:3aff:fe5e:8960 on bond0.*.
Oct 14 22:29:33 ydhl-test1 avahi-daemon: Registering new address record for 192.168.71.51 on bond0.IPv4.
Oct 15 00:10:21 ydhl-test1 avahi-daemon: 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: 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: 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: 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: 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: 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: Received response from host 192.168.77.95 with invalid source port 3998 on interface 'bond0.0'



# 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这个设备
有人知道这个问题的原因和解决方法吗?感激不尽啊

alphasniper 发表于 2013-10-14 17:11

或者有没有类似的帖子贴给我下 谢谢喽

ssffzz1 发表于 2013-10-14 18:07

不采用BOND0的时候,两块网卡单独测试正常吗???
BOND0需要交换机端配合的,你做了吗?

ssffzz1 发表于 2013-10-14 18:07

http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=2068755

ssffzz1 发表于 2013-10-14 18:08

大神???????????

alphasniper 发表于 2013-10-14 19:16

HI,你好,交换机没有弄,原来单块网卡的时候没有问题,就是现在,绑定bond0后出现这种状况,可能如你所说是交换机的问题,我在好好看下,谢谢喽。

alphasniper 发表于 2013-10-15 10:43

现在交换机已经做了聚合了 speed 2G full
但是mii-tool -v bond0还是显示10M

ssffzz1 发表于 2013-10-15 12:16

强制,两端同时,试试

alphasniper 发表于 2013-10-15 17:25

HI:非常感谢你的回复,我用mii-tool工具测了还是10M
但是我把交换机端口聚合以后,带宽是增加了的,效果有明显的提升。可能是mii-tool这个工具显示不准确吧!问题算是解决了。

ssffzz1 发表于 2013-10-15 18:07

哦。我那个贴已经讲清楚了。BOND=0需要交换机支持,否则就是你的那个结果,甚至是不通。
页: [1] 2
查看完整版本: 2个千兆网卡绑bond0 变成10M的问题求大神赐教