alazanowski
14 years agoLevel 5
RHEL 5 /Netbackup 7/Nic Bonding question and issue
Hi Everyone,
We normally have windows media servers, but in order to support a large system with an infiniband connection, we bought some new media servers and loaded them with red hat linux. Each of...
- 14 years ago
bonding on Linux work really great. But there are some pits you need to avoid.- A bond must go to the same switch (eg. port 0 & 2). If you connect to two switches you need to create two bond's.
- The switch must have a channel defined or else the switch do not know to load balance.
- Use LACP as bonding protocol (mode 4)
I will meanwhile dig up a config of my own - I have two Red Hat's running with bonding enabled.
Update:
As promised, this setup is a bit different as bond0 carries subnet configured as VLAN's via 802.1q (VLAN tagging). Hope you can use the info anyway.
# more ifcfg-eth4
# Intel Corporation 82571EB Gigabit Ethernet Controller (Copper)
#HWADDR=00:1f:29:60:af:b7
DEVICE=eth4
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:1f:29:60:af:b7
TYPE=Ethernet
ETHTOOL_OPTS="speed 1000 duplex full autoneg off"
SLAVE=yes
MASTER=bond0
USERCTL=no
# more ifcfg-eth5
# Intel Corporation 82571EB Gigabit Ethernet Controller (Copper)
#HWADDR=00:1f:29:60:af:b6
DEVICE=eth5
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:1f:29:60:af:b6
TYPE=Ethernet
USERCTL=no
MASTER=bond0
SLAVE=yes
ETHTOOL_OPTS="speed 1000 duplex full autoneg off"
more ifcfg-bond0
# Bond0 - no IP address configured, subnet configured as VLAN's.
DEVICE=bond0
TYPE=Bonding
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MII_NOT_SUPPORTED=yes
# more ifcfg-bond0.3144 (VLAN number)
DEVICE=bond0.3144
BOOTPROTO=static
ONBOOT=yes
IPADDR={xxx.yyy.zzz.aaa}
NETMASK=255.255.255.0
USERCTL=no
VLAN=yes