From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ross Skaliotis Date: Sun, 10 Feb 2002 02:25:11 +0000 Subject: Re: [LARTC] shaping from ethernets to adsl Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org What's wrong with using ingress on the ppp0 (adsl) device? Instead of queuing packets leaving eth0 and eth1 to a combined 512, just attach something like the following to ppp0 (remembering to make the rate a bit under 512, experiment to find the best value): tc qdisc del dev ppp0 ingress tc qdisc add dev ppp0 handle ffff: ingress tc filter add dev ppp0 parent ffff: protocol ip prio 10 u32 match ip src \ 0.0.0.0/0 police rate 500kbit buffer 5k drop flowid :1 -Ross Skaliotis On Sat, 9 Feb 2002, Martin Devera wrote: > > I've just realised something though.... How do I allow the total download > > bandwidth hitting eth0+eth1 from the net connection (ppp0) to be limited at > > 512, but "pooled" it I don't want to divide 256/256 per ethernet segment. > > All these restrictions are device specific? > > Unfortunately yes. If you want to limit sum of two-interface output > then you can use my IMQ patch. Vanilla kernel can't do it. > > devik > luxik.cdi.cz/~devik/qos/ > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/ > _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/