Channel bonding interfaces RHEL5

Instructions taken from here: http://www.linuxtopia.org/online_books/rhel5/rhel5_administration/rhel5_s1-networkscripts-interfaces.html

Here’s another good reference: http://www.cyberciti.biz/tips/linux-bond-or-team-multiple-network-interfaces-nic-into-single-interface.html

Create /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NETWORK=192.168.25.0
NETMASK=255.255.255.0
IPADDR=192.168.25.20
IPV6INIT=no
IPV6_AUTOCONF=no
USERCTL=no

Edit /etc/sysconfig/network-scripts/ifcfg-eth1

# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
DEVICE=eth1
HWADDR=3C:4A:92:E4:48:A6
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
IPV6INIT=no
IPV6_AUTOCONF=no
ONBOOT=yes
USERCTL=no
HOTPLUG=no

Edit /etc/sysconfig/network-scripts/ifcfg-eth0

# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
DEVICE=eth0
HWADDR=3C:4A:92:E4:48:A4
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
IPV6INIT=no
IPV6_AUTOCONF=no
ONBOOT=yes
USERCTL=no

Add to /etc/modprobe.conf

alias bond0 bonding
options bond0 mode=balance-alb miimon=100

Install bonding module: modprobe bonding mode=balance-alb miimon=100

Restart networking: service network restart

View the status of bond0: cat /proc/net/bonding/bond0

Ethernet Channel Bonding Driver: v3.4.0-1 (October 7, 2008)

Bonding Mode: adaptive load balancing
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 3c:4a:92:e4:48:a4

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 3c:4a:92:e4:48:a6
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s