Dear Stef Coene, Many thanks for the tip. Seems like it is working now. But I have restrict 2 way traffic with 42 Kbit, that is correspond to 64 Kbit. Is it logical? What is the proportion between dowload and upload in an ideal data flow? Best Regards, Mehmet. PS: Thanx for your effort in your web site. sharing info you have with the community. > 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/ > _______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/