[LARTC] iproute newbie

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx /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@xxxxxxx /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@xxxxxxx /root]#
 
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

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux