From: "Chris Sellers" <chris@powernet.net>
To: lartc@vger.kernel.org
Subject: Fw: [LARTC] good bandwith example?
Date: Thu, 05 Apr 2001 05:26:57 +0000 [thread overview]
Message-ID: <marc-lartc-98644822501246@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98642532921224@msgid-missing>
> does somebody have a working tc commandlist with bandwith limit for
> internet>lan use?
The following is a snippet that I got from my linux router vendor. I will be
putting it in place this week. They
ensure me that it will work. This takes an IP block that uses eth0 and
limits the bw for that IP block to 3Mbit.
I hope this is what you are after, as I am fairly new to this as well, I
cannot garantee this will go. It seems to
conform to what I have read thus far.
#tc qdisc add dev eth0 root handle 10: cbq bandwidth 100Mbit avpkt 1000
#tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 100Mbit rate
100Mbit allot 1514 weight 10Mbit prio 7 maxburst 100 avpkt 1000
#tc class add dev eth0 parent 10:1 classid 10:200 cbq bandwidth 100Mbit rate
3Mbit allot 1514 weight 300Kbit prio 7 maxburst 20 avpkt 1000 bounded
#tc filter add dev eth0 parent 10:0 protocol ip prio 100 u32 match ip src
<ip/nm> flowid 10:200
> - Am I correct to assume that after giving the tc commands the commands
are
> active, right? or do I have to configure/activate something else before
> bandwith limit is working?
The should take affect when you issue them. I have them in a script file
that I can addto/modify on the fly and will be loaded on boot.
Cheers,
Chris
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
prev parent reply other threads:[~2001-04-05 5:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-04 23:00 [LARTC] good bandwith example? Joost A. Schildwacht
2001-04-05 5:26 ` Chris Sellers [this message]
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-98644822501246@msgid-missing \
--to=chris@powernet.net \
--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