From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michal Kolesar" Date: Tue, 29 May 2001 23:28:01 +0000 Subject: [LARTC] iproute newbie MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0203_01C0E8A7.C41E5AC0" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0203_01C0E8A7.C41E5AC0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable 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=20 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:=20 [root@gateway /root]# tc qdisc ls dev eth0 qdisc sfq 8002: quantum 1514b perturb 15sec=20 qdisc sfq 8001: quantum 1514b perturb 15sec=20 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]#=20 is it correct? and the next question.. how could i remove all the qdiscs and classes from firewall? something = like ipchains -F -X... delete all 'tc' settings.. Thank you for help. kolisko ------=_NextPart_000_0203_01C0E8A7.C41E5AC0 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable
Hi all,
 
I tried to set up a traffic shaper for our Inetnet=20 connection.
 
In our company we have 256Kbps line to = Internet.
 
 
195.39.72.238 eth0  ---- FW  ---- = eth1=20 192.168.0.1
 
 
And I would like to set up my firewall to split our = connection=20 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=20 our 256Kbps line and all others computer
in our 192.168.0.0/24 internal network shared the = second=20 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:=20 quantum 1514b perturb 15sec
qdisc sfq 8001: quantum 1514b perturb = 15sec=20
qdisc cbq 10: rate 256Kbit (bounded,isolated) prio=20 no-transmit
[root@gateway /root]# tc class ls dev eth0
class cbq = 10: root=20 rate 256Kbit (bounded,isolated) prio no-transmit
class cbq 10:100 = parent 10:1=20 leaf 8001: rate 128Kbit (bounded) prio 5
class cbq 10:1 parent 10: = rate=20 256Kbit prio no-transmit
class cbq 10:200 parent 10:1 leaf 8002: rate = 128Kbit=20 (bounded) prio 5
[root@gateway /root]#
 
is it correct?
 
and the next question..
how could i remove all the qdiscs and classes from = firewall?=20 something like ipchains -F -X...
delete all 'tc' settings..
 
 
Thank you for help.
 
kolisko
------=_NextPart_000_0203_01C0E8A7.C41E5AC0-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/