[LARTC] Filter problem

Linux Advanced Routing and Traffic Control

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

 



I again.
I have the following statements:

#Initializing traffic control...
tc qdisc add dev br0 root handle 1:0 htb

#Loading queue disciplines for plis230 network...
tc class add dev br0 parent 1:0 classid 1:1 htb rate 512kbit ceil 512kbit

#Loading queue disciplines for pmad048 network...
tc class add dev br0 parent 1:1 classid 1:20 htb rate 30kbit ceil 30kbit
#server queue
tc class add dev br0 parent 1:20 classid 1:21 htb rate 6kbit ceil 30kbit
tc filter add dev br0 protocol ip parent 1:0 prio 1 u32 match ip dst 57.227.233.3 flowid 1:21
tc qdisc add dev br0 parent 1:21 handle 200:0 sfq perturb 10



--After pinging host 57.227.233.3 a while why I get the result of 0 packets sent through that filter?


bridge:/etc/rc.d # tc -s -d qdisc show dev br0;tc -s -d class show dev br0
qdisc htb 1: r2q 10 default 0 direct_packets_stat 128 ver 3.10
Sent 20832 bytes 128 pkts (dropped 0, overlimits 0)

class htb 1:1 root rate 512Kbit ceil 512Kbit burst 2254b/8 mpu 0b cburst 2254b/8 mpu 0b level 7
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 28187 ctokens: 28187


class htb 1:20 parent 1:1 rate 30Kbit ceil 30Kbit burst 1637b/8 mpu 0b cburst 1637b/8 mpu 0b level 6
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 349439 ctokens: 349439


class htb 1:21 parent 1:20 prio 0 quantum 1000 rate 6Kbit ceil 30Kbit burst 1606b/8 mpu 0b cburst 1637b/8 mpu 0b level 0
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 1714132 ctokens: 349439



Thankx a lot, -vcf



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux