On Thursday 06 January 2005 16:33, Mehmet Ali Suzen wrote: > Dear List, > Sorry for the dublicated email but I couldn't get any answer. > > I am trying to limit some IP blocs with tc with following three step. > > # interface > tc qdisc add dev eth0 root handle 1: cbq avpkt 1000 bandwidth 256kbit # > class tc class add dev eth0 parent 1: classid 1:1 cbq rate 64kbit \ > allot 1500 prio 5 bounded isolated > # rules > # download > tc filter add dev eth0 parent 1: protocol ip prio 16 u32 \ > match ip dst 10.0.1.0/24 flowid 1:1 > # upload > tc filter add dev eth0 parent 1: protocol ip prio 16 u32 \ > match ip src 10.0.1.0/24 flowid 1:1 > > > Problem is when I try to measure traffic with ntop (www.ntop.org), it is > seen that overall traffic which that ip block limited to is > much higher then 64kbit, actually it is about 500Kbps which > signifies that tc do not limit properly. What could be the reason > of this inconsistancy? How could I limit 64 Kbps? Is the above > configuration correct? Remove the isolated parameter and try it again. I have some working cbq scripts on http://docum.org on the test pages. Stef _______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/