d3xcrIpt wrote:
> Help me ...
>
> I try use the tc filter, but seems he doesn''t work, I already
> reconfigured my kernel ( 2.4.32 ) with all options related a QOS
> enabled ( like modules ) and nothing happens. I get the tc tool from
> HTB source package, well this is my set :
>
> eth0 is my internal NIC.
>
> tc qdisc add dev eth0 root handle 1: htb default 12
>
> tc class add dev eth0 parent 1: classid 1:1 htb rate 100kbps ceil 100kbps
> tc class add dev eth0 parent 1:1 classid 1:10 htb rate 30kbps ceil 100kbps
> tc class add dev eth0 parent 1:1 classid 1:11 htb rate 10kbps ceil 100kbps
> tc class add dev eth0 parent 1:1 classid 1:12 htb rate 60kbps ceil 100kbps
>
> tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src
> <my_ip> flowid 1:10
>
> tc qdisc add dev eth0 parent handle 20: pfifo limit 5
> tc qdisc add dev eth0 parent handle 30: pfifo limit 5
> tc qdisc add dev eth0 parent handle 40: sfq perturb 10
>
> OK. but ... when I look the qdiscs
>
> tc -s -d qdisc
> qdisc htb 1: r2q 10 default 12 direct_packets_stat 411 ver 3.17
> Sent *181174* bytes 1324 pkts (dropped 0, overlimits 0)
>
> *qdisc pfifo 20: parent 1:10 limit 5p
> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)*
>
> qdisc pfifo 30: parent 1:11 limit 5p
> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>
> qdisc sfq 40: parent 1:12 quantum 1514b limit 128p flows 128/1024
> perturb 10sec
> Sent *130091* bytes 866 pkts (dropped 0, overlimits 0)
>
> All traffic is going to default class ( 1:12 ), I try many filters
> with tc tool but nothing happens.
> I look the modules with lsmod and "cls_u32.o" and
"sch_htb.o" is all
> loaded.
>
> Thanks everyone.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>LARTC mailing list
>LARTC@mailman.ds9a.nl
>http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>
>
You need to do this on external NIC. HTB is a queueing mecanism, which
is done on outgoing traffic.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc