A、B两台设备,都是双网卡绑定,mode=0,交换机上也做了端口组,交换机是cisco 2960,A上起了nfs,B上挂载nfs,然后进行dd测试,cacti上看总是一个端口流量,手动down掉一个网卡,另外一个网卡才有流量。
A: [root@backup ~]# 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): 100 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: em1 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 1 Permanent HW addr: Slave queue ID: 0 Slave Interface: em2 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: B: root@storage-xen bak_201]# 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): 100 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: Slave queue ID: 0 Slave Interface: em2 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: Slave queue ID: 0 交换机: interface Port-channel1 switchport access vlan 150 switchport mode access interface GigabitEthernet0/3 switchport access vlan 150 switchport mode access channel-group 1 mode on spanning-tree portfast ! interface GigabitEthernet0/10 switchport access vlan 150 switchport mode access channel-group 1 mode on spanning-tree portfast