Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Bonding

38 bytes added, 10:54, 26 October 2006
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:
*Static ====In case of static IP====
<pre>
DEVICE=bond0
Replace above IP data with your actual IP address. Save file and exit to shell prompt.
*====In case of DHCP ====
<pre>
DEVICE=bond0
</pre>
**Step #2: ===Modify eth0 and eth1 config files:===
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:
# vi /etc/sysconfig/network-scripts/ifcfg-eth1
Make sure file read as follows for eth1 interface:
Save file and exit to shell prompt.
**Step # 3: === Load bond driver/module===
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"
**Step # 4: === Test the configuration===
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 ==
* === Virtuozzo traffic shaping tools ===
Just replace old netdev to new bonding device (bond0)
</pre>
* === Traffic shaping with tc===Where is no specific specifics here, see:[[Traffic_shaping_with_tcTraffic shaping with tc]].
As a result in: