6,534
edits
Changes
Bonding
,Additionally, link integrity monitoring may be performed.
== Setting up bounding is with bonding on a RHEL/CentOs v4.CentOS 4 or 5 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 configurations using vi (text editor ) and make sure the file read reads as follows for interface eth0 interface
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
<pre>
DEVICE=eth0
</pre>
Open the eth1 configuration file using vi text editor:
Make sure the file read reads as follows for interface eth1 interface:
<pre>
DEVICE=eth1
BOOTPROTO=none
</pre>
Save the file and exit to shell prompt.
# vi /etc/modprobe.conf
<pre>
alias bond0 bonding
options bond0 mode=balance-alb miimon=100
</pre>
You can learn more about all bounding bonding options in the 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 ==
As a result in:
inet 10.17.3.41/16 brd 10.17.255.255 scope global bond0
</pre>
[[Category: HOWTO]]
[[Category: Networking]]