From: Michael Davidson <michael@bbd.co.za>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Cannot get htb & prio working together.
Date: Sat, 05 Nov 2005 09:53:40 +0000 [thread overview]
Message-ID: <436C8124.2030206@bbd.co.za> (raw)
In-Reply-To: <436A4E6B.6090506@bbd.co.za>
Hi,
I've tried the multi tier filtering as suggested, but It didn't do the
trick unfortunately. The filters were accepted at the command line but
when but when I do "tc -s -d filter show dev eth0" the only filters
displayed are those with "root" as the parent. Below is my current script.
tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:1 htb rate 120kbit
tc class add dev eth0 parent 1:1 classid 1:20 htb rate 30kbit ceil 120kbit
tc qdisc add dev eth0 parent 1:20 handle 20: prio
#
#Note: With a "prio" qdisc the class ID's of 20:1 to 3 are automatically
provided
#
tc qdisc add dev eth0 parent 20:1 handle 201: sfq
tc qdisc add dev eth0 parent 20:2 handle 202: sfq
tc qdisc add dev eth0 parent 20:3 handle 203: sfq
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dport
22 0xffff flowid 1:20
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dport
23 0xffff flowid 1:20
tc filter add dev eth0 parent 20:0 protocol ip prio 1 u32 match ip dport
22 0xffff flowid 20:1
tc filter add dev eth0 parent 20:0 protocol ip prio 1 u32 match ip dport
23 0xffff flowid 20:3
Regards Mike.
Toby wrote:
>Jody Shumaker wrote:
>
>
>>tc filter add ... parent 1:0 ... match ip dport 22 0xffff flowid 1:20
>>tc filter add ... parent 1:0 ... match ip dport 23 0xffff flowid 1:20
>>
>>tc filter add ... parent 1:20 ... match ip dport 22 0xffff flowid 20:1
>>tc filter add ... parent 1:20 ... match ip dport 23 0xffff flowid 20:3
>>
>>
> ^^^^ you mean 20: here
>
>The last two filters need to have 20: as parent, if you want to keep
>each filter inside a single qdisc.
>
>
>Toby
>
>
>
--
Regards Mike.
Michael Davidson
Barone Budge & Dominick
Email: michael@bbd.co.za
Office: +27 11 532 8380
BB&D : +27 11 532 8300
Fax: +27 11 532 8400
Mobile: +27 82 650 5707
Home: +27 11 452 4423
This e-mail is confidential and subject to the disclaimer published at
http://www.bbd.co.za
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next prev parent reply other threads:[~2005-11-05 9:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-03 17:52 [LARTC] Cannot get htb & prio working together Michael Davidson
2005-11-03 18:09 ` Andreas Klauer
2005-11-03 22:11 ` Jody Shumaker
2005-11-04 10:13 ` Toby
2005-11-05 9:53 ` Michael Davidson [this message]
2005-11-06 0:12 ` Jody Shumaker
2005-11-06 20:11 ` Michael Davidson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=436C8124.2030206@bbd.co.za \
--to=michael@bbd.co.za \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.