From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Wed, 03 Aug 2005 14:22:05 +0000 Subject: Re: [LARTC] internet traffic from tbf Message-Id: <42F0D30D.6030107@dsl.pipex.com> List-Id: References: <20050802084503.90135.qmail@web54703.mail.yahoo.com> In-Reply-To: <20050802084503.90135.qmail@web54703.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Alaios wrote: > Hi have set the following tbf > tc qdisc add dev eth0 root tbf rate 0.5mbit \ > burst 5kb latency 70ms peakrate 1mbit \ > minburst 1540 > > I want to add a filter so the ip traffic pass from > it.. plz help me That will shape all traffic leaving eth0 as it is. If you mean that you don't want to shape arp or other traffic aswell as ip then you will need to add PRIO as root so you can use filters and add tbf to one of the PRIO classes. TBF tends to tweak the parameters you pass to it so it's best to check what you got after adding it and modify your settings. eg with the above I see - tc -s -d qdisc ls dev eth0 qdisc tbf 8007: rate 500000bit burst 5Kb/8 mpu 0b peakrate 1000Kbit mtu 1539b/8 mpu 0b lat 39.2ms ... note the latency. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc