From: MR <max@cube.usr.dsi.unimi.it>
To: lartc@vger.kernel.org
Subject: [LARTC] CBQ and prio problem
Date: Mon, 04 Mar 2002 12:11:54 +0000 [thread overview]
Message-ID: <marc-lartc-101524403632212@msgid-missing> (raw)
Hi,
I'm trying to configure a Linux machine to act as a "DS router" (ie it
should manage differents priorities based on the TOS field) and as a traffic
shaper too (let's say 800Kbit of 10Mbit).
I've used the following commands but i wasn't able to shape the outgoing
traffic (the prio works fine).
Thanks in advance for any idea,
Max
#!/bin/sh
TC="/usr/sbin/stc"
DEVICE="eth0"
total="10Mbit"
$TC qdisc add dev $DEVICE root handle 1: cbq bandwidth $total avpkt 1000 \
cell 8
$TC class add dev $DEVICE parent 1:0 classid 1:1 cbq bandwidth $total \
rate 800Kbit allot 1514 avpkt 1000 weight 80Kbit prio 8 maxburst 20 \
mpu 64 bounded
$TC qdisc add dev $DEVICE parent 1:1 handle 100: prio bands 3 priomap 2 1 0
$TC qdisc add dev $DEVICE parent 100:1 tbf rate 10Mbit burst 10Mbit \
limit 10Mbit
$TC qdisc add dev $DEVICE parent 100:2 tbf rate 10Mbit burst 10Mbit \
limit 10Mbit
$TC qdisc add dev $DEVICE parent 100:3 tbf rate 10Mbit burst 10Mbit \
limit 10Mbit
#############FILTERS############
$TC filter add dev $DEVICE parent 1:0 prio 1 \
protocol ip u32 \
match u32 0x00200000 0x00FC0000 at 0 \
flowid 100:1
$TC filter add dev $DEVICE parent 1:0 prio 1 \
protocol ip u32 \
match u32 0x00400000 0x00FC0000 at 0 \
flowid 100:2
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2002-03-04 12:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-04 12:11 MR [this message]
2002-03-04 12:56 ` [LARTC] CBQ and prio problem 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-101524403632212@msgid-missing \
--to=max@cube.usr.dsi.unimi.it \
--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.