How to configure bonding between eth0 and eth1 ?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux
    • 6.x
    • 5.x

Issue

  • How to configure bonding between eth0 and eth1 ?

Resolution

  • Sample ifcfg-bond0 interface configuration file
# cat /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
IPADDR=X.X.X.X
NETMASK=X.X.X.X
ONBOOT=yes
BOOTPROTO=<static/dhcp>
USERCTL=no
NM_CONTROLLED=no
BONDING_OPTS="bonding parameters separated by spaces"
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# cat /etc/sysconfig/network-scripts/ifcfg-eth1


DEVICE=ethN      --- N can be replaced by 0 or 1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
NM_CONTROLLED=no
  • For RHEL 5 System, need to add below line in /etc/modprobe.conf file.
alias bondX bonding

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.