RTNETLINK problem with tc [message #37059] |
Sun, 16 August 2009 16:08  |
Sékiltoyai
Messages: 7 Registered: August 2009 Location: France
|
Junior Member |
|
|
Hello,
I'm trying to set up trafic control on the HN to limit bandwidth used in VPS.
These two rules are tests (see futher). The first one (tc qdisc) seems to work without error, but the second one (tc class) throw a "RTNETLINK answers: Invalid argument" error.
After some searches on Google, I have ensured every /lib/modules/2.6.26-2-openvz-amd64/kernel/net/sched/ modules were modprobed (so as sch_cbq). But no way to make this second rule to work...
Do you have some relative feedback or ideas for investigate the problem ?
Thanks for your help.
My OS : Debian Lenny
My kernel : linux-image-2.6.26-2-openvz-amd64 (installed by debian packages)
The tc commands :
sudo tc qdisc add \
dev eth0 \
root handle "1:" \
cbq \
avpkt 1500 \
bandwidth 100mbit
sudo tc class add \
dev eth0 \
parent "1:" \
classid "1:1" \
cbq \
rate 15mbit \
allot 5000 \
prio 2
|
|
|