From: Michel Angelo da Silva Pereira <michelpereira@netsite.com.br>
To: lartc@vger.kernel.org
Subject: [LARTC] tc isn't working
Date: Wed, 20 Feb 2002 14:37:03 +0000 [thread overview]
Message-ID: <marc-lartc-101421594826976@msgid-missing> (raw)
Hi all, I'm using this script to do some traffic control on my network.
I wanna to limit the traffic to 64kb on my network interface that
goes to Internet, but the script isn't working.
When I try do to a download, the bandwidth goes to 11MB/s.
The rule need to be added on the eth0 (outgoing traffic) or the
eth1 (incoming traffic from internet called inside).
Bye
Internet --> eth0 Linux eth1 --> Private Network.
tc qdisc add dev eth0 root handle 100: cbq bandwidth 1Mbit avpkt 1000
tc class add dev eth0 parent 100:0 classid 100:1 cbq bandwidth 10Mbit \
rate 64Kbit allot 1514 weight 6Kbit prio 8 maxburst 8 avpkt 1000 \
bounded
tc class add dev eth0 parent 100:1 classid 100:2 cbq bandwidth 64Kbit \
rate 32Kbit allot 1513 weight 2Kbit prio 5 maxburst 8 avpkt 1000
tc class add dev eth0 parent 100:1 classid 100:3 cbq bandwidth 64Kbit \
rate 32Kbit allot 1513 weight 2Kbit prio 5 maxburst 9 avpkt 1000
tc qdisc add dev eth0 parent 100:2 sfq quantum 1514b perturb 15
tc qdisc add dev eth0 parent 100:3 sfq quantum 1514b perturb 15
tc filter add dev eth0 parent 100:0 protocol ip prio 25 u32 match ip \
dst 192.168.0.2 flowid 100:2
tc filter add dev eth0 parent 100:0 protocol ip prio 25 u32 match ip \
dst 192.168.0.1 flowid 100:3
--
========================Netsite Internet Provider - +55(0xx16) 605-4000
Security Officer
Profissional Certificado Conectiva Linux
www.netsite.com.br/kidmumu - UIN 4553082-LC 83522
========================
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
next reply other threads:[~2002-02-20 14:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-20 14:37 Michel Angelo da Silva Pereira [this message]
2002-02-20 15:52 ` [LARTC] tc isn't working bert hubert
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-101421594826976@msgid-missing \
--to=michelpereira@netsite.com.br \
--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.