Community discussions

MikroTik App
 
User avatar
kapulan
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Tue Feb 07, 2006 7:48 pm
Location: Hungary

Different Bandwitdh per IP in Mikrotik

Sun Feb 19, 2006 6:52 pm

Hi,

I need your help very urgent, please so kind you try to solve the next problem:

Nowadays, We were built a Mikrotik router computer. Now we have 29 clients in Wireless network and We hope this number continuously will increasing. Because, We would like to build so system, what Mikrotik server to controll the system.
So, We would like to adjust, that will get different users different bandwitdh.
For example:

192.168.2.10 512/512kbits
192.168.2.11 384/384kbits
192.168.2.12 128/128kbits etc.

We would not like to dedicate bandwitdh for users.
Which kind of command do we need that it's function?
If it is possible, than we would like to adjust according the MAC address and not IP address.

Other problem:

If the MAC address is not exists in the address list in Mikrotik server, than can't able to connect to the Internet and don't get permission for the data traffic. Where we are adjust this protection?

Thank you in advance for your help,

Krisztian Módos
Hungary
 
cibernet
Long time Member
Long time Member
Posts: 610
Joined: Fri Jan 28, 2005 7:22 pm
Location: Marcos Juárez, Córdoba, Argentina
Contact:

Re: Different Bandwitdh per IP in Mikrotik

Sun Feb 19, 2006 10:48 pm

Hi,

I need your help very urgent, please so kind you try to solve the next problem:

Nowadays, We were built a Mikrotik router computer. Now we have 29 clients in Wireless network and We hope this number continuously will increasing. Because, We would like to build so system, what Mikrotik server to controll the system.
So, We would like to adjust, that will get different users different bandwitdh.
For example:

192.168.2.10 512/512kbits
192.168.2.11 384/384kbits
192.168.2.12 128/128kbits etc.

We would not like to dedicate bandwitdh for users.
Which kind of command do we need that it's function?
If it is possible, than we would like to adjust according the MAC address and not IP address.

Other problem:

If the MAC address is not exists in the address list in Mikrotik server, than can't able to connect to the Internet and don't get permission for the data traffic. Where we are adjust this protection?

Thank you in advance for your help,

Krisztian Módos
Hungary
Well, you can control bandwith with simple queues and to bound an ip/mac use the ARP table, and configure the interface to reply-only. Check the manuals and search the forums...

Regards
 
User avatar
acim
Member
Member
Posts: 415
Joined: Mon Sep 12, 2005 12:26 am
Location: Serbia
Contact:

Mon Feb 20, 2006 12:19 am

Here is an example:

/queue simple add name="limit-local" target-addresses=192.168.2.10/24 dst-address=0.0.0.0/0 interface=ether1 parent=none priority=8 queue=default/default limit-at=512000/512000 total-queue=default
 
User avatar
kapulan
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Tue Feb 07, 2006 7:48 pm
Location: Hungary

Mon Feb 20, 2006 11:56 am

Here is an example:

/queue simple add name="limit-local" target-addresses=192.168.2.10/24 dst-address=0.0.0.0/0 interface=ether1 parent=none priority=8 queue=default/default limit-at=512000/512000 total-queue=default
Acim!The example not work! :(
Value of target-address must have all host bits zero,as in 192.168.2.6

queue simple add name="limit-local" target-addresses=192.168.2.6/24 dst-address=0.0.0.0/0 interface=x21 parent=none priority=8 queue=default/default limit-at=512000/512000 total-queue=default
 
User avatar
maroon
Member Candidate
Member Candidate
Posts: 230
Joined: Thu Oct 07, 2004 11:15 am
Location: Lebanon
Contact:

Mon Feb 20, 2006 12:17 pm

it should be like this

192.168.x.x/32 for each client

or for the subnet 192.168.x.0/24

regards
 
User avatar
acim
Member
Member
Posts: 415
Joined: Mon Sep 12, 2005 12:26 am
Location: Serbia
Contact:

Mon Feb 20, 2006 3:29 pm

Of course, my mistake, mask should be /32, we are talking about single hosts. I just did copy&paste from my machine but didn't change all relevant information.
 
User avatar
kapulan
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Tue Feb 07, 2006 7:48 pm
Location: Hungary

Mon Feb 20, 2006 10:35 pm

Of course, my mistake, mask should be /32, we are talking about single hosts. I just did copy&paste from my machine but didn't change all relevant information.

Why am I should use mask /32, when I have /24 mask and practically should be enough?!
 
User avatar
acim
Member
Member
Posts: 415
Joined: Mon Sep 12, 2005 12:26 am
Location: Serbia
Contact:

Mon Feb 20, 2006 10:56 pm

If you put 192.168.2.0/24 then your whole network will share the same queue. In your original post you asked how to shape single PC's to different speeds, so you should use mask /32 and separate queue for each machine.
 
User avatar
kapulan
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Tue Feb 07, 2006 7:48 pm
Location: Hungary

Mon Feb 20, 2006 11:36 pm

If you put 192.168.2.0/24 then your whole network will share the same queue. In your original post you asked how to shape single PC's to different speeds, so you should use mask /32 and separate queue for each machine.
Can you help in through the MSN or IQ? If, it is yes. than please send me your MSN address this e-mail address "info@kapulan.hu"?
Thanks
 
User avatar
acim
Member
Member
Posts: 415
Joined: Mon Sep 12, 2005 12:26 am
Location: Serbia
Contact:

Mon Feb 20, 2006 11:46 pm

I sent my MSN account to your email. There is one more mistake in the example above, max-limit parameter is missing. Try something like:

add name="limit-local" target-addresses=192.168.2.11/32 dst-address=0.0.0.0/0 interface=ether1 parent=none priority=8 queue=default/default max-limit=384000/384000 total-queue=default

This is if you don't want to define minimal speed for your clients (guaranteed speed), otherwise put in limit-at parameter. Or, if you want your clients to be able to use more if the link is not used much, then put something like this:

add name="limit-local" target-addresses=192.168.2.11/32 dst-address=0.0.0.0/0 interface=ether1 parent=none priority=8 queue=default/default limit-at=384000/384000 max-limit=768000/768000 total-queue=default

This will make your users use 384kbit when the link if filled up and 768kbit when the link is free.

Who is online

Users browsing this forum: Cr4shOnPc, patrikg and 90 guests