Network Bonding with Failover
Posted: Thu Jan 10, 2013 9:34 pm
"Ethernet bonding refers to aggregating multiple ethernet channels together to form a single channel. This is primarily used for redundancy in ethernet paths or for load balancing." To enable bonding in Debian you need to have the package below. Versions may vary
Then to start the process you need to shut down both of the network interfaces that you want to bond. (not limited to just 2 interfaces if you are wondering. I have bonded 4-10Gig fibre chanels into a 40Gig pipe. To a sys admin, that is bad a$$ throughput) Neways:
Then we need to modify
To look like below. And of course we use a static address in our homes. Turn of DHCP on router, change IP Pools to something other than basic 192.168.0.100, plus limit IP range to only the amount of devices on our home network. Therefore no other connections can be made. Security in this day and age is paramount
auto bond0
iface bond0 inet static
address 10.31.1.5
netmask 255.255.255.0
network 10.31.1.0
gateway 10.31.1.254
slaves eth0 eth1
bond-mode active-backup
bond-miimon 100
bond-downdelay 200
bond-updelay 200
Then to active the bond and start network:
- Code: Select all
apt-get install ifenslave-2.6
Then to start the process you need to shut down both of the network interfaces that you want to bond. (not limited to just 2 interfaces if you are wondering. I have bonded 4-10Gig fibre chanels into a 40Gig pipe. To a sys admin, that is bad a$$ throughput) Neways:
- Code: Select all
ifdown eth0
- Code: Select all
ifdown eth1
- Code: Select all
/etc/init.d/networking stop
Then we need to modify
- Code: Select all
vi /etc/network/interfaces
- Code: Select all
gedit /etc/network/interfaces
To look like below. And of course we use a static address in our homes. Turn of DHCP on router, change IP Pools to something other than basic 192.168.0.100, plus limit IP range to only the amount of devices on our home network. Therefore no other connections can be made. Security in this day and age is paramount
auto bond0
iface bond0 inet static
address 10.31.1.5
netmask 255.255.255.0
network 10.31.1.0
gateway 10.31.1.254
slaves eth0 eth1
bond-mode active-backup
bond-miimon 100
bond-downdelay 200
bond-updelay 200
Then to active the bond and start network:
- Code: Select all
ifup bond0
- Code: Select all
/etc/init.d/networking start