Community discussions

MikroTik App
 
Minnaara
just joined
Topic Author
Posts: 9
Joined: Thu May 03, 2018 2:45 pm
Location: Gold Coast, Australia
Contact:

How to do Policy mapping in Mikrotik

Tue May 04, 2021 6:31 am

My ISP has asked me to configure traffic-shaping in my routers and suggested following sample configuration which can be used with CISCO IOS. Does anybody know how to configure policy-maps in Mikrotik routers? Thank you!
Step 1.
Create Policy Map
policy-map
class class-default
shape average
E.g. For a 20Mbps service: router(config)# policy-map
Example_20M_service
class class-default
shape average 19600000 200000 0
If the CPE does not accept ‘0’ for excess-burst, input a
small value. E.g. 1000

Step 2.
Apply Policy Map to interface/sub-interface
interface ethernet
service-policy output
E.g. attach our 20M Service policy to the outgoing
Fast Ethernet interface
router(config)# interface FastEthernet4
service-policy output Example_20M_service
 
pe1chl
Forum Guru
Forum Guru
Posts: 10186
Joined: Mon Jun 08, 2015 12:09 pm

Re: How to do Policy mapping in Mikrotik  [SOLVED]

Tue May 04, 2021 12:14 pm

You can do similar things in the /queue tree menu.
See the wiki: https://wiki.mikrotik.com/wiki/Manual:Queue#Queue_Tree

Of course there are many more capabilities than this simple config that is shown in the Cisco example.
You should be able to mimic that with something simple like:

/queue tree
add limit-at=20M max-limit=20M name=queue-internet parent=ether1 queue=default

(of course instead of ether1 apply your interface name for internet, if it is PPPoE use the PPPoE interface name)
 
Minnaara
just joined
Topic Author
Posts: 9
Joined: Thu May 03, 2018 2:45 pm
Location: Gold Coast, Australia
Contact:

Re: How to do Policy mapping in Mikrotik

Wed Sep 08, 2021 6:38 am

Thank you very much for your help. This was exactly what I needed.
 
Minnaara
just joined
Topic Author
Posts: 9
Joined: Thu May 03, 2018 2:45 pm
Location: Gold Coast, Australia
Contact:

Re: How to do Policy mapping in Mikrotik

Wed Sep 08, 2021 6:39 am

/queue tree
add limit-at=20M max-limit=20M name=queue-internet parent=ether1 queue=default

(of course instead of ether1 apply your interface name for internet, if it is PPPoE use the PPPoE interface name)
[/quote]

Thank you very much for your help. This was exactly what I needed.

Who is online

Users browsing this forum: AkosGergely, bp0, GoogleOther [Bot], Marc1963 and 88 guests