How to configure bonding between eth0 and eth1 ?
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"
- For more information on the bonding options see the following article:
How do I configure bonding device on Red Hat Enterprise Linux? - If two Ethernet interfaces are being channel bonded, both eth0 and eth1 may look like the following example:
# 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
