Community discussions

MikroTik App
 
moinpathanmkp
just joined
Topic Author
Posts: 1
Joined: Tue Aug 23, 2016 4:30 pm

how to change mtu in multiplevlan with single click

Sat Jul 10, 2021 9:05 pm

Hi,
in my MikroTik, I have added around a number of 2000 VLAN and I need to change MTU
so help me how to change MTU in all VLAN with single or any script
 
User avatar
ryba84
just joined
Posts: 23
Joined: Sat Feb 07, 2015 1:18 pm

Re: how to change mtu in multiplevlan with single click

Sun Jul 11, 2021 2:58 am

Terminal one liner:
/interface/vlan; :foreach i in=[find] do={set $i mtu=1500}
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: how to change mtu in multiplevlan with single click

Sun Jul 11, 2021 3:08 am

This is not V7 beta section,
and the OP do not wrote what version of routeros use.
As "RouterOS > Beginner Basics" must be supposed than use at least the long term version

also the script must be corrected for more clear syntax,
but "old and new" command line change all VLAN MTU regardless of use
/interface vlan set [find] mtu=1500


But...
I have added around a number of 2000 VLAN and I need to change MTU
you really haved addedd 2000 CPU VLAN instead of use bridge VLAN???
Uhm...

Who is online

Users browsing this forum: Google [Bot] and 15 guests