From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stef Coene Date: Wed, 07 Jan 2004 17:17:49 +0000 Subject: Re: [LARTC] RE: LARTC digest, Vol 1 #1523 - 17 msgs Message-Id: <200401071817.49598.stef.coene@docum.org> List-Id: References: <50F73B338A7FD943B7937BBCF99BFBDE2DAE95@mail.sofaware.com> In-Reply-To: <50F73B338A7FD943B7937BBCF99BFBDE2DAE95@mail.sofaware.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Tuesday 06 January 2004 10:43, Aron Brand wrote: > Hi Roy, > > It seems that I wasn't clear. Lets give an example. > > I have a machine with a single ethernet interface, with two IP addresses > A and B. This is done using two virtual interfaces. > A is my IP address in ISP-A. B is my IP address in ISP-B. The physical > line to ISP-A is 1.5Mbps. The physical line to ISP-B is 256kbps. > > I want to shape the traffic so that, for example, HTTP traffic will take > no more than 10% of the ISP-B link, and no more than 20% of the ISP-A > link. > > There seems to be no way to do this without the ability to attach a > qdisc to a virtual interface. Please correct me if I am wrong... You can do this if this box is also natting. The difference between packets leaving the 2 links is the source address. You can use the source address to put the traffic in 2 different classes. After that you can create subclasses for http traffic. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/