[LARTC] problem with the howto sample

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



after reading the new howto i wanted to rewrite my QoS-script, now that most parameters lost their mysteriousness. while rewriting i gave some classes new classid's which led to 'RTNETLINK answers: Invalid argument'. i decided to try the sample from the howto first, but got the same problem:

Sample configuration

This configuration limits webserver traffic to 5mbit and smtp traffic to 3 mbit, and limits the sum to 5mbit:
[...]
# tc class add dev eth0 parent 1:1 classid 10: cbq bandwidth 100Mbit  \
  rate 5Mbit weight 0.5Mbit prio 5 allot 1514 cell 8 maxburst 20      \
  avpkt 1000 bounded

the above leads to an Invalid argument. it seems that tc doesnt like the classid 10: (at least the error disappears if i change it to e.g. 1:2).

have i done something wrong or is it an error in the example? this problem leads me also to the next question:

is the naming of classes essential for building them correctly? is parent 1:1 classid 10:0 somehow different from parent 1:1 classid 1:2? up to now i thought classid was only a name and the parent would be enough to make the classes' positions in the tree unambiguously...

regards,

Patrick




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux