Bandwidth Queue how to?

My dl BW is 10mbps and ul is 2mbps. Now what i want is to divide the total bandwidth into chunks of 512kbps and 1mbps for my users. Like i want to dedicate 1mbps DL and 256kbps UL to 192.168.0.2 to 15 and 512kbps DL and 128kbps UL to 192.168.0.16 to 21 and from the first chunk i want 192.168.0.4 & 8 to get 128/32 each and like that. How can i do that? Pls help me in detail.

wiki.mikrotik.com

http://wiki.mikrotik.com/wiki/Queue_with_Masquerading_and_Internal_Web-Proxy

you should start at mangle setup;
it is a good example about marking a packet,
and preparing the queue-tree-setup.

regards tristan

Thanks for the replies. I read thru the manual and understood but i think the scenario is abit different in my case. And i’m new to Mikrotik OS. So pls any can give a solution in detail to my exact problem. Thanks.

You need to create a simple queue for each IP address. This is detailed in the manual.

Thanks. But if i use simple queue for each ip address than how can i divide my total bw. Moreover in simple queue first rule executes first. Is there any other solution like mangle? If any one would give me a line by line solution to my problem it will be very helpful.

http://forum.mikrotik.com/t/help-please-on-shaping/25634/4
http://forum.mikrotik.com/t/tree-queues-and-traffic-priority/25135/3
http://forum.mikrotik.com/t/mikrotik-learning-book/25988/1