6,534
edits
Changes
Bonding
,fixed formatting big time
Additionally, link integrity monitoring may be performed.
== Setting up bounding is with on a RHEL/CentOs v4.CentOS 4 system ==**Step #1: ===Create a bond0 configuration file===
Red Hat Linux stores network configuration in /etc/sysconfig/network-scripts/ directory. First, you need to create bond0 config file:
# vi /etc/sysconfig/network-scripts/ifcfg-bond0
Append following lines to it:
<pre>
DEVICE=bond0
Replace above IP data with your actual IP address. Save file and exit to shell prompt.
<pre>
DEVICE=bond0
</pre>
Open both configuration using vi text editor and make sure file read as follows for eth0 interface
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
<pre>
DEVICE=eth0
Open eth1 configuration file using vi text editor:
Make sure file read as follows for eth1 interface:
Save file and exit to shell prompt.
Make sure bonding module is loaded when the channel-bonding interface (bond0) is brought up. You need to modify kernel modules configuration file:
# vi /etc/modprobe.conf
<pre>
alias bond0 bonding
You can learn more about all bounding options in kernel source documentation file "Documentation/networking/bonding.txt"
First, load the bonding module:
<pre>
Check proc info:
# cat /proc/net/bonding/bond0
<pre>
Ethernet Channel Bonding Driver: v2.6.3 (June 8, 2005)
default via 10.17.0.1 dev bond0
</pre>
== Traffic shaping ==
Just replace old netdev to new bonding device (bond0)
</pre>
As a result in: