|
-
Hi all!
I'm installing a sun X4200 with mandriva 2008 spring which is going to be the main server in a cluster. Yesterday I spend all afternoon trying to get link agregation to work, and I finally got it, but our solution was a little bit unconventional.
First of all I tried the standard way using command line tools and it worked perfectly
modprobe bonding
ip addr add 192.168.100.33/24 brd dev bond0
ip link set dev bond0 up
ifenslave bond0 eth0 eth1
After this it was working perfectly and the output of the ifconfig returned three interfaces : eth0, eth1 and bond0 all of them with the same mac address.
Then we decided to create some initscripts so the bonding could be automatically configured when the computer boots. As it says in in the kernel documentation (/usr/src/linux/Documentation/networking/bonding.txt) we wrote the ifcfg-eth0 and ifcfg-eth1 this way (I 'm only pasting eth0) :
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
And the ifcfg-bond0 this way:
DEVICE=bond0
IPADDR=192.168.100.33
NETMASK=255.255.255.0
NETWORK=192.168.100.0
BROADCAST=192.168.100.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
And when we restarted the network we found that after executing ifconfig only bond0 was there (there were other interfaces but they are not involved in the bonding so I'm not talking about them), /proc/net/bonding/bond0 was perfect and the network was not working.
After looking in forums, documentation, manuals, etc, testing each configuration they have and found non of them working we finaly solve the problem commenting line 179 in the /etc/sysconfig/network-scripts/ifup-eth script.
that line is :
/sbin/ip link set dev ${DEVICE} down
my question is: should this line be there? because when you shutdown the interfaces involved in the bonding, it stops working
thank you very much in advance for your comments
Oscar C.S. |