From: Mugur TOMITA <mtomita@euroweb.ro>
To: lartc@vger.kernel.org
Subject: Re[6]: [LARTC] CBQ Traffic control not working
Date: Thu, 13 Mar 2003 20:57:35 +0000 [thread overview]
Message-ID: <marc-lartc-104758919020636@msgid-missing> (raw)
> > tc class add dev eth0 parent 1:1 classid 1:8 cbq bandwidth 10Mbit rate
> > 64Kbit allot 1514 cell 8 weight 6.4Kbit prio 1 maxburst 20 avpkt 1000 split
> > 1:0 tc filter add dev eth0 parent 1:0 protocol ip prio 1 handle 4 fw
> > classid 1:8
> Euh. You don't have any filters? How do you redirect traffic to a class?
> You need some filters to do so.
The filters are there... if you take a closer look you'll that my
copy/paste was falty...
But I can tell you I solved the problem. I attched my solution below.
Stef, you are right, my filters are not working...
In fact I don't konow what I did wrong:
for marking packets depending on their source I used
ipchains -A output -p all -s 192.168.1.0/30 -m 1
tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1: cbq bandwidth 10Mbit cell 8 avpkt 300 mpu 64
tc class add dev eth1 parent 1: classid 1:1 cbq bandwidth 10Mbit rate 72Kbit weight 7.2Kbit prio 7 allot 1514 maxburst 20 avpkt 300 bounded isolated
tc class add dev eth1 parent 1:1 classid 1:3 cbq bandwidth 10Mbit rate 64Kbit weight 6.4Kbit prio 6 allot 1514 bounded isolated
ip route add 192.168.1.8/29 via 192.168.1.1 realm 1
tc filter add dev eth1 parent 1:0 protocol ip prio 1 route to 1 classid 1:3
tc class add dev eth1 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 14Kbit allot 1514 cell 8 weight 1.4Kbit prio 7 maxburst 20 avpkt 300 split 1:0 bounded
isolated
ip route add 192.168.3.8/29 via 192.168.3.1 realm 2
tc filter add dev eth1 parent 1:0 protocol ip prio 7 route to 2 classid 1:2
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2003-03-13 20:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-13 20:57 Mugur TOMITA [this message]
2003-03-13 21:01 ` Re[6]: [LARTC] CBQ Traffic control not working Mugur TOMITA
2003-03-14 22:21 ` Stef Coene
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=marc-lartc-104758919020636@msgid-missing \
--to=mtomita@euroweb.ro \
--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.