Google
  Web www.spinics.net

Re: tc filter not work, why?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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

[Bugtraq]     [Fedora Legacy]     [GCC Help]     [Yosemite News]     [Yosemite Photos]     [IP Tables]     [Netfilter Devel]     [Fedora Users]

Powered by Linux