• 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. dracut: command not found
  2. script: command not found
  3. vncviewer Command Examples in Linux
  4. prlimit: command not found
  5. How To Configure 802.1q VLAN On NIC On CentOS/RHEL 7 and 8
  6. pkcon Command Examples in Linux
  7. dolphin: command not found
  8. sftp: command not found
  9. po4a-updatepo: command not found
  10. Beginner’s Guide to LVM (Logical Volume Management)

You May Also Like

Primary Sidebar

Recent Posts

  • ctags: Generates an index (or tag) file of language objects found in source files for many popular programming languages
  • csvtool: Utility to filter and extract data from CSV formatted sources
  • csvstat: Print descriptive statistics for all columns in a CSV file
  • csvsql: Generate SQL statements for a CSV file or execute those statements directly on a database

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright