bandwidth limit problem
Brought to you by:
pgolubev
Hi, I have one 386 Kbit link on my eth1 interface. I tried
to assign to my users on per-user bassis 64Kbit of
traffic, so every user can get its own maximum 64 Kbits.
When I set up this control only for one user, everithing
looks fine. But if I assign the same control to several ip-
s that are in use, everything becomes too slow.
Can You tell me where I make mistake?
This is config I am using with CBQ.init
filename: cbq-064.kbs
config:
DEVICE=eth1,10Mbit,10Mbit
RATE=64Kbit
WEIGHT=6Kbit
PRIO=5
RULE=192.168.0.10
RULE=192.168.0.11
Thanx in advance,
Alex
Logged In: YES
user_id=1010275
use one RULE per a class and different classes for each IP...
Logged In: YES
user_id=1260695
how to do that? please give an example based on a network
with 2 ips.
Sebastian
Logged In: YES
user_id=1010275
Here is the expamle...
let's say you have a 10Mbps bandwidth on 100Mbps inerface..
and you want to shape 2 ips, so they can devide those 10Mbps
between each other... and every one of them can use the
maximum speed, when the other one is not downloading...
1st... we make the parent class:
file name : cbq-1000.parent
-----------------
DEVICE=eth1,100Mbit,10Mbit
RATE=10Mbit
WEIGHT=1Mbit
PRIO=5
---------------
2nd: the children for ip 192.168.0.10
file name: cbq-1001.host1
---------------
DEVICE=eth1
RATE=5MKbit
WEIGHT=500Kbit
PRIO=5
LEAF=sfq
BOUNDED=no
PARENT=1000
RULE=192.168.0.10
-----------------
3th...the children for ip 192.168.0.11
file: cbq-1002.host2
--------------------
DEVICE=eth1
RATE=5Mbit
WEIGHT=500Kbit
PRIO=5
LEAF=sfq
BOUNDED=no
PARENT=1000
RULE=192.168.0.11
-----------------
that's it.... if you want the parent not to give unused
bandwidth to some of it's children .. or if you want some
child not to take unused bandwith from it's parent, just
remove the LEAF and BAUNDED tags... by default BAUNDED is
set to yes....
I suggest you read all the information in your cbq.init
file... every single opstion is described there...
Take care..