From: Federico Montesino Pouzols <p5087@quintero.fie.us.es>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] iproute newbie
Date: Fri, 01 Jun 2001 11:13:58 +0000 [thread overview]
Message-ID: <marc-lartc-99139444009445@msgid-missing> (raw)
On Wed, May 30, 2001 at 01:28:01AM +0200, Michal Kolesar wrote:
> Hi all,
>
> I tried to set up a traffic shaper for our Inetnet connection.
>
> In our company we have 256Kbps line to Internet.
>
>
> 195.39.72.238 eth0 ---- FW ---- eth1 192.168.0.1
>
>
> And I would like to set up my firewall to split our connection to two 128Kbps..
>
> our internal network IP address is 192.168.0.0/24
>
> My idea is:
>
> one computer with address 192.168.0.7 to have 128Kbps part of our 256Kbps line and all others computer
> in our 192.168.0.0/24 internal network shared the second 128Kbps part of our 256Kbps..
>
> How can I do is?
>
> I tried something like this:
>
> [root@gateway /root]# tc qdisc ls dev eth0
> qdisc sfq 8002: quantum 1514b perturb 15sec
> qdisc sfq 8001: quantum 1514b perturb 15sec
> qdisc cbq 10: rate 256Kbit (bounded,isolated) prio no-transmit
> [root@gateway /root]# tc class ls dev eth0
> class cbq 10: root rate 256Kbit (bounded,isolated) prio no-transmit
> class cbq 10:100 parent 10:1 leaf 8001: rate 128Kbit (bounded) prio 5
> class cbq 10:1 parent 10: rate 256Kbit prio no-transmit
> class cbq 10:200 parent 10:1 leaf 8002: rate 128Kbit (bounded) prio 5
> [root@gateway /root]#
>
> is it correct?
>
To the best of my knowledge, it should work. Maybe you will find
useful removing the `bounded' option, in order to allow everyone using the
maximum bandwidth whenever it is possible.
Moreover, for traffic shaping you may find useful the
tbf (Tocken Bucket Filter) discipline instead of sfq.
> and the next question..
> how could i remove all the qdiscs and classes from firewall? something like ipchains -F -X...
> delete all 'tc' settings..
Try something like 'tc qdisc del dev eth0 del root', the root
qdisc, class and all the children nodes should vanish.
>
>
> Thank you for help.
>
> kolisko
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
next reply other threads:[~2001-06-01 11:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-01 11:13 Federico Montesino Pouzols [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-05-29 23:28 [LARTC] iproute newbie Michal Kolesar
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-99139444009445@msgid-missing \
--to=p5087@quintero.fie.us.es \
--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.