Community discussions

MikroTik App
 
Deden
just joined
Topic Author
Posts: 6
Joined: Fri Feb 24, 2006 5:48 am

sharing bandwith (serveral computer)

Tue Jun 13, 2006 1:38 pm

Dear..,

I have b/w128 kbps from my provider, i wan't to make computer 192.168.0.$i (i=1 to 10) have b/w 64kbps share 1:10

I already make config :
[admin@MikroTik] queue tree> /ip firewall mangle print
0 chain=prerouting src-address=192.168.0.1 action=mark-connection new-connection-mark=sharing-conn passthrough=no
1 chain=prerouting src-address=192.168.0.2 action=mark-connection new-connection-mark=sharing-conn passthrough=no
....
9 chain=prerouting src-address=192.168.0.10 action=mark-connection new-connection-mark=sharing-conn passthrough=no
11 chain=prerouting connection-mark=sharing-conn action=mark-packet new-packet-mark=pkgsharing-10 passthrough=no

[admin@MikroTik] queue tree> print
0 name="sharing-bw" parent=global-in packet-mark="" limit-at=64000 queue=default priority=8 max-limit=64000 burst-limit=0
burst-threshold=0 burst-time=0s

1 name="queue2" parent=sharing-bw packet-mark=pkgsharing-10 limit-at=6400 queue=default priority=8 max-limit=64000
burst-limit=0 burst-threshold=0 burst-time=0s
------------------------------------------------------------------------------------------------
Is it corret ??

-deden-
 
User avatar
samsoft08
Long time Member
Long time Member
Posts: 613
Joined: Sat Nov 26, 2005 10:52 pm

Tue Jun 13, 2006 3:56 pm

i'm trying to do the same thing , many times i asked this question without reply , i hope anyone from the holly MT team to aprove this setup and make any correct if there is any mistake :

mangle rules

4 ;;; PCQ
chain=forward src-address-list=group1 protocol=tcp action=mark-connection new-connection-mark=users-con passthrough=yes

5 chain=forward protocol=tcp connection-mark=users-con action=mark-packet new-packet-mark=users passthrough=yes

Queue Type

5 name="pcq-download" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000

6 name="pcq-upload" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000

Queue Tree

3 name="queue1" parent=localnet packet-mark=users limit-at=0 queue=pcq-download priority=1 max-limit=256k burst-limit=0
burst-threshold=0 burst-time=0s

4 name="queue2" parent=internet packet-mark=users limit-at=0 queue=pcq-upload priority=1 max-limit=128k burst-limit=0
burst-threshold=0 burst-time=0s

note that (src-address-list=group1 ) group1 is a collection of 10 IP's of my clients..
1-i'm lost with the forward and prerouting , wich one must be used here and why ..
2- is these mangle rules enough to mark all the packets come from and to the clients ??
 
User avatar
samsoft08
Long time Member
Long time Member
Posts: 613
Joined: Sat Nov 26, 2005 10:52 pm

Wed Jun 14, 2006 10:45 pm

its my last wish before somthing will happen to me , any expert would answer and say somthing about the previous setup ???????
 
ManyX
Member Candidate
Member Candidate
Posts: 111
Joined: Sat Jan 07, 2006 12:48 pm
Location: PolanD

Thu Jun 15, 2006 1:25 pm

I thing write some examples in wiki how to build efficient universal queue tree for ADSL/SDSL line wil be good idea. Becouse ADSL line is very popular and a lot of people have that line, and in wiki ther isn't any examples about build queue tree.

In this moment I haven't enought experience to write a wiki
 
User avatar
samsoft08
Long time Member
Long time Member
Posts: 613
Joined: Sat Nov 26, 2005 10:52 pm

Sat Jun 17, 2006 11:33 pm

there are so many questions still without answer , i think its the duty of MT team to answer ..
 
ManyX
Member Candidate
Member Candidate
Posts: 111
Joined: Sat Jan 07, 2006 12:48 pm
Location: PolanD

Sun Jun 18, 2006 1:28 pm

no-one help us how to build queue tree with load balancing :cry:

Who is online

Users browsing this forum: ankorzh, erlinden, jaclaz, sindy and 63 guests