Hi, I''m looking for a way to limit bandwidth to/from clients using a contended 2Mb link. What I''m looking for is to allow a client machine to use the full 2Mb but only if there is no traffic to/from other clients. I''ve been looking at htb.init and cbq.init, and believe that the BURST used in htb.init will allow what I need. I''m looking to put in place something like: ------------------ | Router | ------------------ | ------------------ | Bridge | ------------------ | ------------------ | Switch | ------------------ | Various servers Am I right in thinking that I''ll be able to use tc within the bridge ? Regards, Jon _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Yes, You can use tc on a bridge. See also this thread: http://mailman.ds9a.nl/pipermail/lartc/2003q1/007378.html If you are just going to perform traffic control, and you don''t need to use iptables, you don''t need the bridge+nf functionality. Add your filters to the "real" devices, not br0. -Martin : I''m looking for a way to limit bandwidth to/from clients using a : contended 2Mb link. What I''m looking for is to allow a client machine to : use the full 2Mb but only if there is no traffic to/from other clients. : I''ve been looking at htb.init and cbq.init, and believe that the BURST : used in htb.init will allow what I need. : : I''m looking to put in place something like: : ------------------ : | Router | : ------------------ : | : ------------------ : | Bridge | : ------------------ : | : ------------------ : | Switch | : ------------------ : | : Various servers : : Am I right in thinking that I''ll be able to use tc within the bridge ? : : Regards, : Jon : : _______________________________________________ : LARTC mailing list / LARTC@mailman.ds9a.nl : http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ : -- Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Monday 10 March 2003 15:48, Jon Lawrence wrote:> Hi, > I''m looking for a way to limit bandwidth to/from clients using a > contended 2Mb link. What I''m looking for is to allow a client machine to > use the full 2Mb but only if there is no traffic to/from other clients. > I''ve been looking at htb.init and cbq.init, and believe that the BURST > used in htb.init will allow what I need.The burst is not what you need. You have to create 2 htb classes. One for your limited client and one for the other clients. You can give the limit client 10% and the other clients 90% bandwidth. They both can use up to 100% if there is bandwidth left. So the other clients are always sure they can use 90% of your link. 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/