NIC Bonding In Linux
Nic bonding is defined as bonding of two or more network cards on a server/pc to form a parallel single connection. This is a great way of achieving redundancy to a server if it's having more number of network cards. Its having many names like. 1. Link aggregation 2. Channel Bonding 3. NIC Bonding 4. NIC teaming 5. Network card Bonding 6. Ethernet bonding 7. Trunking 8. Etherchannel 9. Multi-link truning(MLT) 10.Network bonding 11.Network Fault Tolerance(NFT) 12.Port channel 13.Smartgroup 14.EtherTrunk Nic bonding is used to provide two benefit's for us 1. High bandwidth 2. Redundancy/resilience Before Clustering softwares come in to existing this technique is widely used to provide redundancy to a high end server. After cluster software introduced it's used to enhance the cluster redundancy. In this post we will see how can we achieve Nic bonding. Nic bonding will work with the help of bonding driver in kernel. Implementing NIC bonding : Participating interfaces. eth0 eth1 bnd0 Step1 : Create bond interface file with following content in it vi /etc/syconfig/network-scripts/ifcfg-bnd0 DEVICE=bnd0 IPADDR=192.168.0.234 NETWORK=192.168.0.0 NETMASK=255.255.255.0 USERCTL=no BOOTPROTO=none ONBOOT=yes GATEWAY=192.168.0.1 save and exit the file Step2 : Now create a bnd0 virtual interface in modprobe.conf as shown below alias bnd0 bonding options bnd0 miimon=100 mode=6 Save and exit the file Let me explain what actually the above two lines...
Read More