• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL 5 : How to configure Interface bonding (NIC teaming)

by admin

Follow the 4 steps below to configure the bonding interface in CentOS/RHEL 5.

1. configure bonding driver.

# grep bond0 /etc/modprobe.conf
alias bond0 bonding

2. configure under-layer interfaces

# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
# cat /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes

3. configure bonding interface with bonding parameters:

# cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=dhcp
ONBOOT=yes
BONDING_OPTS="mode=4 miimon=100 lacp_rate=1"

4. activate bonding interface

# ifup bond0

CenntOS/RHEL 5 enhances the bonding interface configuration. It’s recommended to configure bonding parameters in ifcfg-bondX instead of /etc/modprobe.conf. The benefit is that those parameters could be changed per bonding interface during the interface initialization process, rather than the bonding driver initialization process. That is to say, parameter change does not require the bonding driver to be reloaded anymore. This helps to reduce the system-wide network outage while doing some tiny change on the bonding interfaces.

Please be noted that the bonding parameter configuration in /etc/modprobe.conf is still supported. It’s just not recommended.

Filed Under: CentOS/RHEL 5, Linux

Some more articles you might also be interested in …

  1. How to Verify a Lun is in Active/Optimized Mode when ALUA Is Configured on Storage
  2. jlink: command not found
  3. Understanding rsyslog Filter Options
  4. mcookie Command Examples in Linux
  5. lvcreate Command Examples in Linux
  6. mkfs.fat Command Examples in Linux
  7. Linux OS Service ‘setroubleshoot’
  8. How to extend an LVM swap partition in Linux
  9. How to Calculate Memory Usage in Linux using sar, ps, and free
  10. abroot Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • nixos-rebuild Command Examples in Linux
  • nixos-option: Command Examples in Linux
  • nixos-container : Command Examples in Linux
  • nitrogen Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright