• 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

How to Change the Network Bonding Mode in CentOS/RHEL 6

by admin

Question: How can we change the network bonding configuration from one mode to another?

Steps to change the network bonding configuration.

Temporarily Change the Bonding Mode

In this case, this changes the bonding mode in the running system configuration, but not permanently.

Step 1: Check the current mode set:

# cat /sys/class/net/bond0/bonding/mode

Step 2: Bring down the bonded interface(ex: bond0):

# ifdown bond0

Step 3: Change the Bonding Mode:

# echo 4 > /sys/class/net/bond0/bonding/mode    ### for Active - Active mode

Step 4: Check back the current bond status:

# cat /sys/class/net/bond0/bonding/mode
802.3ad 4

Step 5: Bring up the bonded interface:

#ifup bond0

Permanently Change the Bonding Mode

In this case, the changes to the bonding mode are persistent across a reboot.

Step 1: Edit the configuration file with new mode value:

# vim /etc/sysconfig/network-scripts/ifcfg-bondeth0

Step 2: Change the bonding mode:

BONDING_OPTS="mode=active-backup miimon=100 downdelay=5000 updelay=5000 num_grat_arp=100"   ### from Active - Backup

to

BONDING_OPTS="mode=4 miimon=100 downdelay=5000 updelay=5000 num_grat_arp=100"    ### Active - Active mode

Save and quit the file.

Step 3: Bring up the bonded interface:

# ifup bondeth0

The same steps can be used for changing any one of the modes to the another.

Filed Under: CentOS/RHEL, CentOS/RHEL 6, Linux

Some more articles you might also be interested in …

  1. Linux OS Service ‘yppasswdd’
  2. How to Configure Proxy in CentOS/RHEL/Fedora
  3. Linux OS Service ‘kdump’
  4. How to change the default location (/var/cache/yum) of yum cache
  5. Linux OS Service ‘rpcidmapd’
  6. How to Map Static IP to your Domain (with GoDaddy example)
  7. Beginners Guide to Linux Software Management with RPM
  8. “Warning: Missing charsets in String to FontSet conversion” – how to resolve the xclock warning message
  9. How to change the interface name in CentOS/RHEL 8 using prefixdevname
  10. How to monitor NVME drives on Centos 6

You May Also Like

Primary Sidebar

Recent Posts

  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found
  • macof: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright