* [LARTC] Filter problem
@ 2003-07-17 8:49 Vitor Carlos Flausino
2003-07-17 20:17 ` Stef Coene
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Vitor Carlos Flausino @ 2003-07-17 8:49 UTC (permalink / raw)
To: lartc
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
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] Filter problem
2003-07-17 8:49 [LARTC] Filter problem Vitor Carlos Flausino
@ 2003-07-17 20:17 ` Stef Coene
2003-07-21 15:16 ` Vitor Carlos Flausino
2004-08-24 19:48 ` Falcon Torn
2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2003-07-17 20:17 UTC (permalink / raw)
To: lartc
On Thursday 17 July 2003 10:49, Vitor Carlos Flausino wrote:
> I again.
> I have the following statements:
Maybe this can help :
http://www.docum.org/stef.coene/qos/faq/cache/41.html
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] Filter problem
2003-07-17 8:49 [LARTC] Filter problem Vitor Carlos Flausino
2003-07-17 20:17 ` Stef Coene
@ 2003-07-21 15:16 ` Vitor Carlos Flausino
2004-08-24 19:48 ` Falcon Torn
2 siblings, 0 replies; 4+ messages in thread
From: Vitor Carlos Flausino @ 2003-07-21 15:16 UTC (permalink / raw)
To: lartc
I found what the problem was.
Insted of br0 in configurations, if I use eth0 it works (hum... queer).
Thkx any way,
-vcf
Stef Coene wrote:
>On Thursday 17 July 2003 10:49, Vitor Carlos Flausino wrote:
>
>
>>I again.
>>I have the following statements:
>>
>>
>Maybe this can help :
>
>http://www.docum.org/stef.coene/qos/faq/cache/41.html
>
>Stef
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LARTC] Filter problem
2003-07-17 8:49 [LARTC] Filter problem Vitor Carlos Flausino
2003-07-17 20:17 ` Stef Coene
2003-07-21 15:16 ` Vitor Carlos Flausino
@ 2004-08-24 19:48 ` Falcon Torn
2 siblings, 0 replies; 4+ messages in thread
From: Falcon Torn @ 2004-08-24 19:48 UTC (permalink / raw)
To: lartc
Hi !
I want to share my bandwidth between 10 computers. I want to redirect
computer A(192.168.1.4) to htb class 1:2 and the others to htb class 1:3.
But the
last tc filter doesn't work :
Error message : "Unknown filter "flowid", hence option "1:3" is unparsable.
"
I know the option "default" for htb but I don't want to use it for some
reasons.
I also tried "tc filter add dev imq0 protocol ip parent 1:1 prio 2 u32
flowid 1:3" but I got this error : "RTNETLINK answers: Invalid argument"
Any ideas?
My Script with imq + htb
-----------------------------------------------------------
ip link set imq0 up
iptables -t mangle -A PREROUTING -j IMQ --todev 0
tc qdisc add dev imq0 handle 1: root htb
tc class add dev imq0 parent 1: classid 1:1 htb rate 512kbit
tc class add dev imq0 parent 1:1 classid 1:2 htb rate 256kbit ceil 512kbit
tc class add dev imq0 parent 1:1 classid 1:3 htb rate 256kbit ceil 512kbit
tc filter add dev imq0 protocol ip parent 1:1 prio 1 u32 match ip dst
192.168.1.4/32 flowid 1:2
tc filter add dev imq0 protocol ip parent 1:1 prio 2 flowid 1:3
_________________________________________________________________
MSN Messenger http://g.msn.fr/FR1001/866 : dialoguez en direct et
gratuitement avec vos amis !
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-08-24 19:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-17 8:49 [LARTC] Filter problem Vitor Carlos Flausino
2003-07-17 20:17 ` Stef Coene
2003-07-21 15:16 ` Vitor Carlos Flausino
2004-08-24 19:48 ` Falcon Torn
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.