* [LARTC] HTB and tc filter
@ 2006-09-10 19:16 d3xcrIpt
2006-09-13 4:06 ` gypsy
0 siblings, 1 reply; 2+ messages in thread
From: d3xcrIpt @ 2006-09-10 19:16 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/html, Size: 2036 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] HTB and tc filter
2006-09-10 19:16 [LARTC] HTB and tc filter d3xcrIpt
@ 2006-09-13 4:06 ` gypsy
0 siblings, 0 replies; 2+ messages in thread
From: gypsy @ 2006-09-13 4:06 UTC (permalink / raw)
To: lartc
> 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.
"u32 match ip src <my_ip>"
Are you sure your IP isn't getting NATted somewhere? You can't match
something that is changed!
Include a "prio" (non zero) in your filter line.
Direct packets are A Bad Thing too. Read Devik's HTB documentation.
--
gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-13 4:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-10 19:16 [LARTC] HTB and tc filter d3xcrIpt
2006-09-13 4:06 ` gypsy
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.