About NIC bonding in Ubuntu
I have 2 NIC cards and tried for NIC bonding as:
1) Shutdown active interfaces by the following command: ifdown eth0 and ifdown eth1
2) Commentout the ethernet configurations and add bonding configuration into /etc/network/interfaces
The code goes like this:
# Loopback network interface
auto lo
iface lo inet loopback
auto bond0
iface bond0 inet static
address 192.168.1.x
netmask 255.255.255.0
gateway (Router's IP)
bond-slaves eth0 eth1
# LACP (Link Aggregation Control Protocol) configuration
bond_mode active-backup
bond_miimon 100
bond_lacp_rate 1
3) Bring up the bonding interface using the command: sudo ifup bond0
4) Restart the network to take the changes into consideration using
sudo /etc/init.d/networking restart
Well, now I'm able to access internet. But when I tried to remove one cable out, I'm unable to access.Even though the bond mode is kept in active-backup, why it's happening so?
Can someone please help in this regard?
|