Community discussions

MikroTik App
 
atuxnull
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Tue Feb 07, 2017 10:02 pm

Set bandwidth limit on WAN

Tue Sep 08, 2020 3:23 pm

I do have a RB and i would like to put a bandwidth Limit on the WAN interface to 10Mbps. This is pppoe-out1 and it is on eth1.
May i have some help please?
 
User avatar
xvo
Forum Guru
Forum Guru
Posts: 1237
Joined: Sat Mar 03, 2018 1:12 am
Location: Moscow, Russia

Re: Set bandwidth limit on WAN

Tue Sep 08, 2020 3:42 pm

/queue simple add dst=pppoe-out1 max-limit=10M/10M name=queue1 queue=default/default target=eth1
 
atuxnull
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Tue Feb 07, 2017 10:02 pm

Re: Set bandwidth limit on WAN

Tue Sep 08, 2020 9:55 pm

/queue simple add dst=pppoe-out1 max-limit=10M/10M name=queue1 queue=default/default target=eth1
Thanks a lot for the reply. Apart forbthe queues code, do i need to add anything else on the firewall or anywhere else?
 
User avatar
xvo
Forum Guru
Forum Guru
Posts: 1237
Joined: Sat Mar 03, 2018 1:12 am
Location: Moscow, Russia

Re: Set bandwidth limit on WAN  [SOLVED]

Tue Sep 08, 2020 10:23 pm

/queue simple add dst=pppoe-out1 max-limit=10M/10M name=queue1 queue=default/default target=eth1
Thanks a lot for the reply. Apart forbthe queues code, do i need to add anything else on the firewall or anywhere else?
Nope, but I misread your original post a little, so the command should be:

/queue simple add dst=pppoe-out1 max-limit=10M/10M name=queue1 queue=default/default target=name-of-your-local-bridge

instead of

/queue simple add dst=pppoe-out1 max-limit=10M/10M name=queue1 queue=default/default target=eth1
 
atuxnull
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Tue Feb 07, 2017 10:02 pm

Re: Set bandwidth limit on WAN

Thu Sep 10, 2020 7:38 am

I have multiple WAN interfaces
  • pppoe-out1
  • pppoe-out2
  • lte1
  • lte2
  • eth1
and i would like to add a bandwidth limit to each one of them as in
  • pppoe-out1=10Mbps
  • pppoe-out2=unlimited
  • lte1=3Mbps
  • lte2=5Mbps
  • eth1=20Mbps
How would your code look like, then?
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2975
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Set bandwidth limit on WAN

Thu Sep 10, 2020 9:12 am

Just multiply shown rule replacing change dst=????? parameter to the particular interface you want to limit ... that's all.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 21893
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Set bandwidth limit on WAN

Thu Sep 10, 2020 5:05 pm

Why would you want to cap the bandwidth the ISp provides. Seems like paying for 5 steaks and throwing away 2 of them.
 
atuxnull
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Tue Feb 07, 2017 10:02 pm

Re: Set bandwidth limit on WAN

Fri Sep 11, 2020 8:10 am

Why would you want to cap the bandwidth the ISp provides. Seems like paying for 5 steaks and throwing away 2 of them.
It's not that simple. The ISP has a fine on speed. so if i keep my speed under those levels then i will keep the bandwidth until the end of the billing cycle. Otherwise they impose a cap and you get the lowest speed they can provide.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 21893
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Set bandwidth limit on WAN

Fri Sep 11, 2020 9:09 pm

Ahh thank you!! Understanding the requirement is critical at least for me, it leads to the most efficient solution and less coding errors.
This is one case where there is a direct correlation to costs LOL.
 
creatin
Member Candidate
Member Candidate
Posts: 108
Joined: Sat Nov 23, 2019 2:59 am

Re: Set bandwidth limit on WAN

Sat Sep 12, 2020 2:44 am

Usually ISP put restrictions on the speed once you use let's say 100 gb of traffic, after that it limits your speed to 5 mbit/s,
first time I hear ISP is limiting speed if you use full provided and I assume paid bandwidth
 
DarkNate
Forum Guru
Forum Guru
Posts: 1065
Joined: Fri Jun 26, 2020 4:37 pm

Re: Set bandwidth limit on WAN

Sat Sep 19, 2020 6:35 pm

/queue simple add dst=pppoe-out1 max-limit=10M/10M name=queue1 queue=default/default target=eth1
Thanks a lot for the reply. Apart forbthe queues code, do i need to add anything else on the firewall or anywhere else?
Nope, but I misread your original post a little, so the command should be:

/queue simple add dst=pppoe-out1 max-limit=10M/10M name=queue1 queue=default/default target=name-of-your-local-bridge

instead of

/queue simple add dst=pppoe-out1 max-limit=10M/10M name=queue1 queue=default/default target=eth1
What if we leave target as blank though?
 
User avatar
xvo
Forum Guru
Forum Guru
Posts: 1237
Joined: Sat Mar 03, 2018 1:12 am
Location: Moscow, Russia

Re: Set bandwidth limit on WAN

Sat Sep 19, 2020 10:50 pm

What if we leave target as blank though?
Should work the same way in this scenario.

Who is online

Users browsing this forum: No registered users and 11 guests