• 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 4 : How to configure interface bonding (NIC teaming)

by admin

Follow the 4 steps below to configure the bonding interface:
1. configure bonding driver, as well as the bonding mode and parameters using the configuration file /etc/modprobe.conf.

# grep bond0 /etc/modprobe.conf
alias bond0 bonding
options bond0 mode=1 miimon=100

2. configure the save interfaces of the bond using the respective network scripts.

# 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 using the network script file /etc/sysconfig/network-scripts/ifcfg-bond0.

# cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
MASTER=yes
BOOTPROTO=dhcp
ONBOOT=yes

4. activate bonding interface once you have completed all the above steps.

# ifup bond0

Please be very careful the bonding parameter settings on CentOS4/RHEL 4 is different than that on CentOS/RHEL 5. The “BONDING_OPTS” in ifcfg-XXX is not supported on CentOS/RHEL 4 system. For RHEL/CentOS 4 systems, the bonding parameters should always be set in /etc/modprobe.conf.

Note: For multiple bonding interfaces on CentOS/RHEL 4, “max_bonds” parameter should be used for those with same mode, and multiple driver instances should be used for those with different mode.

Filed Under: CentOS/RHEL 4, Linux

Some more articles you might also be interested in …

  1. latte-dock: command not found
  2. “aws rds” Command Examples
  3. 2to3 – Automated Python 2 to 3 code conversion
  4. NFSv4 Client Shows “nobody” As Owner And Group For Mount Point (CentOS/RHEL)
  5. make: Nothing to be done for `default’
  6. Basic Master Cups Server and Clients Configuration for Browsing in CentOS/RHEL 7
  7. arch-chroot Command Examples in Linux
  8. rdesktop: command not found
  9. CentOS / RHEL : How to Install and Configure OpenSSH Server and Client
  10. paste: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • “aws s3 mb” Command Examples
  • “aws s3 ls” Command Examples
  • “aws s3 cp” Command Examples
  • “aws route53” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright