Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Bonding

373 bytes removed, 20:45, 4 August 2012
m
Reverted edits by StevenCook (talk) to last revision by 93.97.250.90
Additionally, link integrity monitoring may be performed.
== Setting up bounding bonding on a RHEL/CentOS 4 or 5 system ==
===Create a bond0 configuration file===
===Modify eth0 and eth1 config files===
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>
Open the eth1 configuration file using vi text editor:
vi /etc/sysconfig/network-scripts/ifcfg-eth1
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.
=== Load bond driver/module ===
== Traffic shaping ==
=== Virtuozzo traffic shaping tools ===
Just replace old netdev to new bonding device (bond0)
vi /etc/sysconfig/vz
<pre>
## Network traffic parameters
TRAFFIC_SHAPING=yes
BANDWIDTH="bond0:102400"
TOTALRATE="bond0:1:4096"
RATE="bond0:1:8"
</pre>
and do the rest as usuall
<pre>
# vzctl set $veid --ratebound $bound --rate $rif:$class:$rate --save
</pre>
 
=== Traffic shaping with tc ===
Where is no specifics here, see [[Traffic shaping with tc]].