Community discussions

MikroTik App
 
hci
Long time Member
Long time Member
Topic Author
Posts: 674
Joined: Fri May 28, 2004 5:10 pm

Limit Bandwidth to Subnet

Wed Jul 18, 2018 2:01 am

I have a Mikrotik router that is connected to the Internet by PPPoE connection providing it 6mbps. It provides multiple clients in 192.168.1.0/24 subnet IP leases by DHCP. I would like an easy way to limit each IP leased in that subnet too 2 mbps so a single client does not max out the circuit. How is that done?
 
User avatar
Steveocee
Forum Guru
Forum Guru
Posts: 1120
Joined: Tue Jul 21, 2015 10:09 pm
Location: UK
Contact:

Re: Limit Bandwidth to Subnet

Wed Jul 18, 2018 2:10 am

The problem with doing that is when the connection is quiet, all clients still only get 2Mb.
You could look at doing something like this to ensure a fair service to all, it creates a queue called default-sfq (as my OCD doesn't allow a hotspot or wireless queue on the WAN), target could be your PPPoE interface or you could specify your /24 with destination 0.0.0.0, max-limit is download/upload.

IF the connection is at full utilisation this gives a round robin approach to packets.
/queue type
add kind=sfq name=default-sfq
/queue simple
add max-limit=55M/15M name=WAN_Queue queue=default-sfq/default-sfq target=pppoe-out1
 
hci
Long time Member
Long time Member
Topic Author
Posts: 674
Joined: Fri May 28, 2004 5:10 pm

Re: Limit Bandwidth to Subnet

Wed Jul 18, 2018 4:37 pm

Can you explain how this works a little more? If this works it would be wonderful. Basically we run into issues when the connection is maxed by one user when anyone else wants to use it they say its slow as mud. What is significance of the "max-limit=55M/15M"?
 
hci
Long time Member
Long time Member
Topic Author
Posts: 674
Joined: Fri May 28, 2004 5:10 pm

Re: Limit Bandwidth to Subnet

Wed Jul 18, 2018 4:44 pm

I tried this:

/queue simple
add disabled=yes max-limit=256k/1M queue=pcq-upload-default/pcq-download-default target=192.168.1.0/24

But it seems to pool all the IP's together and limit them too 1mbps. I want each IP separately limited too 1mbps.
 
freemannnn
Forum Veteran
Forum Veteran
Posts: 700
Joined: Sun Oct 13, 2013 7:29 pm

Re: Limit Bandwidth to Subnet

Wed Jul 18, 2018 5:22 pm

lets say your provider upload speed=1Mbps and download=10Mbps. your subnet is 192.168.1.0/24.
you want every user to have 256kbps upload and 2mbps download

/queue simple
add disabled=no max-limit=1M/10M queue=pcq-upload-default/pcq-download-default target=192.168.1.0/24

you have to set UPLOAD/DOWNLOAD rates to pcq queues. see the photo below...
disable also FASTTRACK rule in firewall-filter if exists.
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 135 guests