Bandwidth management

Limit Internet Speed per User on MikroTik with Simple Queue

Give each user or device a fixed speed on a MikroTik router with simple queues, add burst for faster browsing, and keep the limit working with static DHCP leases.

Commands in this article follow RouterOS v7 documentation but have not yet been marked as lab-tested on this site. Always test changes in a lab or maintenance window and keep a backup.

Problem

You want to give a specific user or device a fixed speed, for example 5 Mbps download, or sell different speed packages.

Symptoms

  • A limit works for a while, then stops because the device got a new IP address.
  • The queue shows traffic but the speed is not limited.

Likely causes

Simple queues match by IP address. If the IP changes, or FastTrack bypasses the queue, the limit does not apply.

Prerequisites

  • The device's IP address. Make it permanent with a static DHCP lease.

Solution (WinBox / CLI)

1. Make the IP permanent. In IP > DHCP Server > Leases, right-click the device and choose Make Static, or:

RouterOS CLI
/ip dhcp-server lease make-static [find address=192.168.88.20]

2. Add the queue. Values are upload/download:

RouterOS CLI
/queue simple add name=user-20 target=192.168.88.20/32 max-limit=2M/5M

3. Optional burst. Short bursts make web pages open faster while long downloads stay at the limit:

RouterOS CLI
/queue simple set user-20 burst-limit=4M/10M burst-threshold=1500k/4M burst-time=16s/16s

The user can reach the burst limit while their average speed over burst-time stays below the burst threshold.

Note: FastTrack bypasses simple queues. If your firewall has a FastTrack rule, disable it or exclude the limited users.

Verification

  • Run a speed test on the device. It should show about 5 Mbps download.
  • In WinBox Queues, the queue turns red when the limit is reached.

Common errors

  • Upload and download reversed: the order is upload/download.
  • A queue for the whole subnet placed above the per-user queues catches everything first. Drag per-user queues to the top.
  • The device uses randomized (private) MAC addresses, gets a new IP, and escapes the limit. Turn off "private Wi-Fi address" on the device for this network.

Rollback

RouterOS CLI
/queue simple remove [find name=user-20]
Go deeper in class

This topic is covered hands-on in MTCNA — MikroTik Certified Network Associate.

View MTCNA
WhatsApp