From: "Martin A. Brown" <mabrown-lartc@securepipe.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] How to limit a dev bandwidth.
Date: Sun, 10 Aug 2003 00:16:25 +0000 [thread overview]
Message-ID: <marc-lartc-106047485214910@msgid-missing> (raw)
In-Reply-To: <marc-lartc-106032592806296@msgid-missing>
Hello there,
: The device is 100M.
: How to limit it to 1M?
Maybe you wish to use IMQ? [1]
Are you trying to simulate a 1MBit link?
If not IMQ, is this a router, or an endstation?
If a router, using HTB:
tc qdisc add dev $OUTSIDE root handle 1: htb default 1
tc class add dev $OUTSIDE parent 1: classid 1:1 htb rate 1Mbit
tc qdisc add dev $INSIDE root handle 1: htb default 1
tc class add dev $INSIDE parent 1: classid 1:1 htb rate 1Mbit
If an endstation, using HTB and policing:
tc qdisc add dev $OUTSIDE ingress
tc filter add dev $OUTSIDE parent ffff: protocol ip \
u32 match ip src 0.0.0.0/0 flowid :1 \
police rate 1Mbit mtu 12k burst 10k drop
tc qdisc add dev $OUTSIDE handle 1: htb default 1
tc class add dev $OUTSIDE parent 1: classid 1:1 htb rate 1Mbit
-Martin
[1] http://trash.net/~kaber/imq/
--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2003-08-10 0:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-08 6:59 [LARTC] How to limit a dev bandwidth anzp
2003-08-08 17:06 ` Stef Coene
2003-08-10 0:16 ` Martin A. Brown [this message]
2003-08-14 10:57 ` Raghuveer
2003-08-15 4:16 ` Martin A. Brown
2003-08-16 4:36 ` Madhuri Patwardhan
2003-08-16 17:18 ` Martin A. Brown
2003-08-16 18:43 ` Madhuri Patwardhan
2003-08-19 9:26 ` Raghuveer
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-106047485214910@msgid-missing \
--to=mabrown-lartc@securepipe.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox