20110131 teamed network interface config on rhel - plembo/onemoretech GitHub Wiki

title: Teamed network interface config on RHEL link: https://onemoretech.wordpress.com/2011/01/31/teamed-network-interface-config-on-rhel/ author: lembobro description: post_id: 73 created: 2011/01/31 11:12:32 created_gmt: 2011/01/31 11:12:32 comment_status: open post_name: teamed-network-interface-config-on-rhel status: publish post_type: post

Teamed network interface config on RHEL

This is one from the indomitable James Dowd.

If you’ve got teamed NICs (network interface cards) on a RHEL (Red Hat Enterprise Linux) box and want them to fail over like you’d expect.

Some advice on this from various posts, like this one.

Edit /etc/modprobe.conf and add the following line to the end:

options bonding mode=1

So the file now should look like:

alias bond0 bonding
options bonding mode=1

To effect this change run:

modprobe -av bonding

If for some reason that doesn’t work, reboot the box.

Some variations on these instructions can be found over on the HP Forum and in the Red Hat Knowledgebase. Both of these indicate the “right” way to set up bonding on RHEL 5 is to create a etc/sysconfig/network-scripts/ifcfg-bondX script and set the config inside it like this:

BONDING_OPTS="mode=1 miimon=100 primary=ethX"

Copyright 2004-2019 Phil Lembo