Hi all,
I've setup bonding as follows:
[root at superbox root]# cat /etc/modules.conf
alias eth0 e1000
alias eth1 e1000
alias bond0 bonding
options bonding miimon=100 mode=1
[root at superbox root]# cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.0.31
NETMASK=255.255.0.0
GATEWAY=192.168.1.254
TYPE=Ethernet
USERCTL=no
PEERDNS=no
[root at superbox root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Intel Corp.|82557/8/9 [Ethernet Pro 100]
DEVICE=eth0
BOOTPROTO=none
#BROADCAST=10.255.255.255
#HWADDR=00:B0:D0:78:0D:80
#IPADDR=10.2.4.31
#NETMASK=255.0.0.0
#NETWORK=10.0.0.0
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
[root at superbox root]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
# Intel Corp.|82557/8/9 [Ethernet Pro 100]
DEVICE=eth1
BOOTPROTO=none
#HWADDR=00:D0:B7:91:51:95
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
OK, works grand.
Questions:
1. This is a failover solution right, so when one goes down (scanning for dirty
minds) the other should replace it transparently. Correct?
2. When failover occurs to eth1, and then the link comes back to eth0, what
happens to the "ownership"? Does it fail back to eth0?
Thanks guys, no access to the lab to physically check this today, or tomorrow
most likely.
Regards
Conor.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!