Hello!My network is connected 15 local lan users!How to limit the local users by ip/subnet ?
My isp:10mbit full duplex
How to limit the banwidth ip address?
192.168.2.1 512kbits/512kbits
192.168.2.2 1024kbits/1024kbits
192.168.2.3 768kbits/768kbits
The Pcq example not work!
Help!
If you have only 15 users. Just create 15 simple queues
/queue simple
add name="queue1" target-addresses=192.168.2.1/32 max-limit=512000/512000
add name="queue1" target-addresses=192.168.2.2/32 max-limit=1024000/1024000
...
If you would like to offer more traffic to the users if it is unused at the moment:
/queue simple
add name="main_queue" interface=local max-limit=10000000/10000000
add name="queue1" target-addresses=192.168.2.1/32 parent=main_queue direction=both priority=2 limit-at=512000/512000 max-limit=2000000/2000000
add name="queue2" target-addresses=192.168.2.2/32 parent=main_queue direction=both priority=3 limit-at=1024000/1024000 max-limit=3000000/3000000
...
So this way if 192.168.2.1 is the only one active user in the network - he will get up to 2M traffic
Think about bursts too.