Bonding in linux

Bonding in RHEL5

In many circumstances, we require stable network connectivity with servers,We have two network cards and we have to use both without disabling network services, there comes Bonding

Bonding

: The Linux bonding driver provides a method for aggregating multiple network interfaces into a single logical bonded interface

The behavior of the bonded interfaces depends upon the mode; generally speaking, modes provide either hot standby or load balancing services. Additionally, link integrity monitoring may be performed.

Procedure to configure NIC bonding in Linux

Edit the Files as follows,

  • vi /etc/modprobe.conf

    alias bond0 bonding
    options bonding miimon=100 mode=1
  • vi /etc/sysconfig/network-scripts/ifcfg-eth0

    DEVICE=eth0
    BOOTPROTO=none
    HWADDR=00:15:17:87:D4:A8
    ONBOOT=yes
    TYPE=Ethernet
    USERCTL=no
    MASTER=bond0
    SLAVE=yes
  • vi /etc/sysconfig/network-scripts/ifcfg-eth1

    DEVICE=eth1
    BOOTPROTO=none
    HWADDR=00:15:17:87:D4:A9
    ONBOOT=yes
    TYPE=Ethernet
    USERCTL=no
    MASTER=bond0
    SLAVE=yes
    And create new file as below,
  • vi /etc/sysconfig/network-scripts/ifcfg-bond0

    DEVICE=bond0
    ONBOOT=yes
    IPADDR=172.16.1.5
    NETMASK=255.255.255.0
    USERCTL=no
    NETWORK=172.16.1.0
    GATEWAY=172.16.1.1

Restart the server. Give ifconfig, you will find bond0 is up with configured IP Address and eth0 and eth1 will be as slave.

Comments

No comments yet.

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.


    Click to Rate This Article
    working