All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikolay Kichukov <hijacker@oldum.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] tc filter not work, why?
Date: Thu, 26 Jul 2007 10:11:58 +0000	[thread overview]
Message-ID: <46A8736E.3070208@oldum.net> (raw)
In-Reply-To: <baa23c9d0707260253r7283e85ao951f0ed62c470151@mail.gmail.com>

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

  reply	other threads:[~2007-07-26 10:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-26  9:53 [LARTC] tc filter not work, why? 吴明津
2007-07-26 10:11 ` Nikolay Kichukov [this message]
2007-07-30  9:30 ` 吴明津

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46A8736E.3070208@oldum.net \
    --to=hijacker@oldum.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.