Redhat – Create Network Interface Bonding

Posted: March 31, 2010 in Redhat

Bonding is a way for a linux server with 2 network cards to share a virtual interface which represents both real interfaces. I’m not sure if you get a boost in throughput or if it is only failover. On a redhat ES4 server, all I did was edit these files and reboot (the modules were alredy loadable by the kernel):

modprobe.conf
ifcfg-eth0
ifcfg-eth1
ifcfg-bond0 (I made this one, as per instructions)

Snipits (all you need to add before rebooting):

From – modprobe.conf ->

###BEGIN OF BONDING
probeall bond0 eth0 eth1 bonding
alias bond0 bonding
options bonding miimon=100 mode=1
###END OF BONDING

From -> ifcfg-eth0

DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

From -> ifcfg-eth1

DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

From -> ifcfg-bond0

DEVICE=bond0
USERCTL=no
ONBOOT=yes
NETMASK=255.255.254.0
BROADCAST=10.200.58.255
GATEWAY=10.200.58.1
IPADDR=10.200.58.21

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

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