Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Traffic shaping with tc

100 bytes added, 07:47, 16 June 2006
Fixed English in Limiting VE to HN talks: , added External links
== Limiting VE to HN talks ==
As you can see, two filters above don't limit VE to HN talks.
I mean, that a VE can emmit emit as much traffic as it wishwishes. To make such a limitation from the HN,it's is necessary to use <tt>tc</tt> policer police on <tt>venet0</tt>:
<pre>
DEV=venet0
tc filter add dev $DEV parent 1: protocol ip prio 20 u32 match u32 1 0x0000 police rate 2kbit buffer 10k drop flowid :1
</pre>
 
== External links ==
* [http://lartc.org/howto/ Linux Advanced Routing & Traffic Control HOWTO]
[[Category: HOWTO]]
[[Category: Networking]]
Anonymous user