02-24-2015 06:50 AM
Hi All,
there is a test environment with 3 Oracle Linux PCs and 2 Cisco SG200-08 switch. Each of PCs has got at least 2 NICs (Intel Desktop PCIe). One of this PC should work as a iSCSI Target using Linux software. This PC has got 3 NICs. All PCs are connected to 2 switches and have got IP adresses in different networks. The first network has a gateway and routing to other networks. The second network should only work between these 3 PCs to separate iSCSI traffic. This configuration works without any problems.
Now I would like to configure 2 (of 3 available) NICs together as a bonding interface bond0 on the PC with iSCSI target. The switch has a support for the 802.3ad link aggregation. At the moment I don't use any VLAN etc.I have only configured the corresponding IP for the switch. So I have enabled the configuration for 2 corresponding ports on the switch with dynamic LACP. Then I have configured the PC with the bonding interface with the options: BONDING_OPTS="mode=802.3ad miimon=100". Ater restarting the network on the PC I can see with "sar -n DEV", that both NICs are used. Als "ping"s from other PCs work.
But the used bonding mode according to the kernel (cat /proc/net/bonding/bond0) is balance round-robin (balance rr) instead of 802.3ad. This is wrong.
I could not find any errors in /var/log/messages. Do I have to enable dynamic LACP on the Linux PC as well? Should I set any other parameters in BONDING_OPT or in SYSCTL.CONF for such configuration?
I have tried both static and dynamic LAG configuration on the switch. With static configuration the corresponding ports (g5 and g6) are only marked as standby members. I could not get them as active members at all.
Any idea?
Thanks in advance
Andrej
Solved! Go to Solution.
02-25-2015 01:10 AM
Hi Brendan,
thanks for your help. I have got the latest firmware for this switch, disabled and enabled the Link Aggregation configuration on the switch and created again the configuration files on Linux. After that I have rebooted both PC and switch. Not it works perfect.
It was my first Link Aggregation on this switch. So I was unsure, if the switch works well with Linux OS in 802.3ad mode at all.
Regards,
Andrej
02-24-2015 11:12 AM
check that the bonding module is loaded into the kernel with "lsmod |grep bond". you might need to create a file in /etc/modprobe.d/. i have 00-bonding.conf with "alias bond0 bonding" in it. oracle linux may differ from my fedora, so it might be a line added to /etc/modprobe.conf. check your docs.
i have these options in the ifcfg-bond0 file: BONDING_OPTS="miimon=100 mode=4 xmit_hash_policy=2"
02-25-2015 01:10 AM
Hi Brendan,
thanks for your help. I have got the latest firmware for this switch, disabled and enabled the Link Aggregation configuration on the switch and created again the configuration files on Linux. After that I have rebooted both PC and switch. Not it works perfect.
It was my first Link Aggregation on this switch. So I was unsure, if the switch works well with Linux OS in 802.3ad mode at all.
Regards,
Andrej
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide