LARTC
[Top] [All Lists]

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

To: 吴明津 <womking@gmail.com>
Subject: Re: [LARTC] tc filter not work, why?
From: Nikolay Kichukov <hijacker@oldum.net>
Date: Thu, 26 Jul 2007 13:11:58 +0300
Cc: lartc@mailman.ds9a.nl
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
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
User-agent: Icedove 1.5.0.10 (X11/20070329)
Hello 吴明津,

Maybe in your filter statement you should use src rather than dst? It is
not clear what interface is connected to what hosts.

HTH,
-Nik

吴明津 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
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>