You are here: Help Routers Configure QoS on a Mikrotik Router
In order to configure QoS on a router you need to know the maximum upload and download speed. To do this visit www.speedtest.net and run a speed test and note the Upload and Download speeds at the end of the test.
-
- Browse to your Mikrotik web interface and login. (Default is admin with no password)
- Click IP, then Firewall and select Address Lists
- Click Add New and enter the following:
- Name – voip_qos_networks
- Address – 180.235.111.64/27
- Click Add New and enter the following:
- Name – voip_qos_networks
- Address – 180.235.108.64/27
- Click IP, then Firewall and select Mangle
- Click Add New and enter the following:
- Chain – prerouting
- Protocol – 17 (udp)
- In. Interface – pppoe-out1
- Src. Address List – voip_qos_networks
- Action – mark packet
- New Packet Mark – VOIP_IN
- Click OK
- Click Add New and enter the following:
- Chain – postrouting
- Protocol – 17 (udp)
- In. Interface – pppoe-out1
- Dst. Address List – voip_qos_networks
- Action – mark packet
- New Packet Mark – VOIP_OUT
- Click OK
- Click Add New and enter the following:
- Chain – prerouting
- In. Interface – pppoe-out1
- Src. Address List – ! voip_qos_networks (N.B: Tick the box next to the drop down)
- Action – mark packet
- New Packet Mark – ELSE_IN
- Click OK
- Click Add New and enter the following:
- Chain – postrouting
- Protocol – 17 (udp)
- In. Interface – pppoe-out1
- Dst. Address List – ! voip_qos_networks (N.B: Tick the box next to the drop down)
- Action – mark packet
- New Packet Mark – ELSE_OUT
- Click OK
- Select Queues then click Queue TreesClick Add New and enter the following:
- Name – ALL_ELSE_IN
- Parent – IN
- Packet Marks – ELSE_IN
- Queue Type – Default
- Priority – 8
- Max Limit – Set this to be around 3 Mbit less than your Download speed form the Speed Test above
- Click OK
- Click Add New and enter the following:
- Name – ALL_ELSE_OUT
- Parent – OUT
- Packet Marks – ELSE_OUT
- Queue Type – Default
- Priority – 8
- Max Limit – Set this to be your upload speed less about 20%
- Click OK
- Click Add New and enter the following:
- Name – IN
- Parent – global-in
- Queue Type – Default
- Priority – 1
- Click OK
- Click Add New and enter the following:
- Name – OUT
- Parent – global-out
- Queue Type – Default
- Priority – 1
- Click OK
- Click Add New and enter the following:
- Name – VOIP_IN
- Parent – IN
- Packet Marks – VOIP_IN
- Queue Type – Default
- Priority – 2
- Click OK
- Click Add New and enter the following:
- Name – VOIP_OUT
- Parent – OUT
- Packet Marks – VOIP_OUT
- Queue Type – Default
- Priority – 2
- Click OK