Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 23620

Scripting • Adding vlan interfaces by range to a master interface by rest or script

$
0
0
first the rest API script at:
https://github.com/elico/routeros-create-vlans-range

and a simple script:
Code:
:local masterInerface "test";:local defaultDisabled "yes";:for LoopCount from=1000 to=1099 step=1 do={/interface/vlan/add interface=$masterInerface name="$masterInerface_vlan$LoopCount" vlan-id=$LoopCount disabled="$defaultDisabled";}

Statistics: Posted by elico — Sun Mar 17, 2024 11:05 pm



Viewing all articles
Browse latest Browse all 23620

Trending Articles