LARTC
[Top] [All Lists]

[LARTC] Re: tc filter not work, why?

To: lartc@mailman.ds9a.nl
Subject: [LARTC] Re: tc filter not work, why?
From: "吴明津" <womking@gmail.com>
Date: Fri, 27 Jul 2007 09:55:35 +0800
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=b2ZEfmCSiJ4s82EPAlwelmwDo2bJU6haGWfAelbgbNia+t5fHzaNsbHiMZBGrW6Ct+BMojgaOuW6mC3rDc9EPuz4xqqWV0lHpUDeaDuGaNpjFtxMXKlT3Goy8rX9XbSQFz1L0RMGhd1EZqURShZL+G6wCxpFyA35qmVPaWBXErA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=O6+Ul6/VnmSIDD6Gl5f2q/91YUgTRDUjpMqXZF1QW8xzsTLMzlQU9/cy4lOw6O1XO19H7/cHqVHjGYmNPhEEvci5rhJMY+9ekh1XcSGe9meAt09OwMZ2eQAnJKHeogRTpF9HWL84akNIEFVBc8j5tF8jlwMsYRW5MtGTP7fNKyo=
In-reply-to: <baa23c9d0707260253r7283e85ao951f0ed62c470151@mail.gmail.com>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <baa23c9d0707260253r7283e85ao951f0ed62c470151@mail.gmail.com>
Sender: lartc-bounces@mailman.ds9a.nl
Does the tc and the linux kernel net/sched/ version must match
exactly? or the kernel configuration miss some modules?

I have compiled in all the Qos and/or fair queueing.

thank you for your help.

On 7/26/07, 吴明津 <womking@gmail.com> wrote:
I try to use tc on mips with linux-2.4.18 but the u32 filter dosn't work

I added htb qdisc to linux-2.4.18 and use it to limit the speed in
LAN, it only work well on the default class, for example

tc qdisc add dev eth0 root handle 1: htb default 10
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 2000kbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 500kbit ceil 500kbit
tc calss add dev eth0 parent 1:1 classid 1:11 htb rate 300kbit ceil 300kbit
tc filter add dev eth0 protocol ip u32 match ip dst 192.168.18.100 flowid 1:11

the host 192.168.18.100 have a speed of 500kbit rather than 300kbit.

if I don't set the default 10 class, all this dosn't have any effect.

why?

thank you.

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
<Prev in Thread] Current Thread [Next in Thread>