Description

These instructions will show you how to combine 2 NICs (Network Interface Cards) into 1, commonly referred to as NIC bonding.

Requirements

Explanation of requirements.

  1. Root access to the system
  2. 2 physical network cards

Doing the work

Basic description of what will be done and what is expected.

  1. Create bond0 config file:
  2. vi /etc/sysconfig/network-scripts/ifcfg-bond0

    Add the following lines:

  3. Edit eth0 config file:
  4. vi /etc/sysconfig/network-scripts/ifcfg-eth0

    Add the following lines:

  5. Edit eth1 config file:
  6. vi /etc/sysconfig/network-scripts/ifcfg-eth1

    Add the following lines:

  7. Load the modules on boot:
  8. vi /etc/modprobe.conf

    Add the following lines:

Troubleshooting

How to test

Explanation troubleshooting basics and expectations.

  1. Load the modules, restart the network show the satus of the interface:
  2. modprobe bonding && service network restart && less /proc/net/bonding/bond0

    Output:

  3. list the interfaces seen by the system:
  4. ifconfig

    Output:

Added Reading

Disclaimer

We test this stuff on our own machines, really we do. But you may run into problems, if you do, come to #centoshelp on irc.freenode.net

Last Modified: 12 Dec, 2015 at 00:43:11