Dear all, I have 1 mbps line to internet. Our linux server is connected to router of 1mb Linux server gets 1mb bandwidth. I have done SOURCE MASQUERADING on linux. I have attached a cbq bandwidth script. I want to allow the traffic to restrict to 200Kbps. it should not exceed beyond 200. I have made a configuration and i kept on the server but the traffic goes beyond 200 .....it even goes to 350 and 400. how can i restrict the traffic on 200. ???? plz check the attached script . plz open in word. any help is great for me. Thanks, Joel
On Thursday 05 June 2003 06:35, Zealous wrote:> Dear all, > > I have 1 mbps line to internet. > > Our linux server is connected to router of 1mb > > Linux server gets 1mb bandwidth. > > I have done SOURCE MASQUERADING on linux. > > I have attached a cbq bandwidth script. I want to allow the traffic to > restrict to 200Kbps. it should not exceed beyond 200. > > I have made a configuration and i kept on the server but the traffic goes > beyond 200 .....it even goes to 350 and 400. how can i restrict the traffic > on 200. ???? > plz check the attached script . > plz open in word. > any help is great for me.Some tips : - Adding the sfq qdisc to class 10:200 is useless. It''s removed as soon as you add a subclass. - Are you sure your packes are queued in the class you want? Check it out with tc -s -d class show dev eth4. - prio 100 is too much. The maximum is 7. - avpkt 800 should reflect your average packet size. Are you sure it''s only 800 bytes? - Is your NIC configured at 10Mbit? (bandwidth parameter) Take weight = rate / 10. - Use htb and visit www.docum.org :) Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Dear friends, I have 1 mbps line connected to linux server. from linux server i have masqueraded some clients. I want to use only 200 kbps. I have attached the script. But on this script the traffic goes up to 350 kbps. how can i bound the bandwidth to 200 kbps. it should not exceed more than that. plz see the script. where m i wrong. any suggestions??? Thanking You, Joel