• 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. bash Command Examples
  2. i3lock: command not found
  3. Beginners Guide to Tuning Profiles in CentOS/RHEL
  4. tee Command Examples in Linux
  5. CentOS / RHEL : How to resize (extend) existing Physical Volume (PV)
  6. Why Does “netstat” Output Show Many Connections in CLOSE_WAIT Status?
  7. firejail Command Examples in Linux
  8. apparmor_status: command not found
  9. CentOS / RHEL : How to log all LVM commands
  10. ASMLib-Managed Disks on Multipathed iSCSI Targets are not Discovered after Server Reboot in CentOS/RHEL 7

You May Also Like

Primary Sidebar

Recent Posts

  • Chezmoi: A multi-machine dotfile manager, written in Go
  • cheat: Create and view interactive cheat sheets on the command-line
  • chars: Display names and codes for various ASCII and Unicode characters and code points
  • chafa: Image printing in the terminal

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright