Bonding in active-backup mode not working when 2 links are connected

Issues related to configuring your network
Post Reply
gobel72
Posts: 1
Joined: 2013/08/21 20:23:10

Bonding in active-backup mode not working when 2 links are c

Post by gobel72 » 2013/08/21 20:33:41

Hi, i experienced the following problem on Centos 5.8
I have 3 servers with the following configuration:
1) bond0 with eth0 and eth1
2) I defined vlan's over the bond0, i.e. bond0.10 and bond0.20
3) and finally, i defined virtual ip's with interfaces bond0.10:1 and bond0.20:2 with ifconfig (not with ifcfg-xxxx files)
4) the network driver is from intel.

The bonding has the following parameters in the ifcfg-bond0 file:
BONDING_OPTS="mode=1 primary=eth0 miimon=100"

on the other side i have a switch stack (2 switch's) with link aggregation.

This are the ifcfg-xxxx files:
---------------------------------------------------
ifcfg-bond0
---------------------------------------------------
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MII_NOT_SUPPORTED=yes
BONDING_OPTS="mode=1 primary=eth0 miimon=100"

---------------------------------------------------
ifcfg-bond0.10
---------------------------------------------------
DEVICE=bond0.10
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
USERCTL=no
MII_NOT_SUPPORTED=yes
VLAN=yes
IPADDR=NNN.NNN.NNN.NNN
NETMASK=YYY.YYY.YYY.YYY
GATEWAY=GGG.GGG.GGG.GGG

---------------------------------------------------
ifcfg-bond0.20
---------------------------------------------------
DEVICE=bond0.20
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
USERCTL=no
MII_NOT_SUPPORTED=yes
VLAN=yes
IPADDR=NNN.NNN.NNN.NNN
NETMASK=YYY.YYY.YYY.YYY

---------------------------------------------------
ifcfg-eth0 and ifcfg-eth1
---------------------------------------------------

DEVICE=ethX
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
TYPE=Ethernet
MII_NOT_SUPPORTED=yes
---------------------------------------------------

The problem is that when i connect both links to the switch stack, the server lost connection from the network, but works fine with only one.
What is wrong with my server configuration or what am I doing wrong?

Thanks for your help!

Post Reply