mirror of
https://github.com/wifinigel/MikrotikScripting.git
synced 2025-07-09 17:44:30 +02:00
update for v6/v7 support
This commit is contained in:
parent
4871e9432b
commit
b10b99bd87
120 changed files with 1479 additions and 22 deletions
|
@ -1,15 +0,0 @@
|
|||
# ch8-03-for-create-vlan.rsc
|
||||
|
||||
# define the interface where we'd like to add a VLAN
|
||||
# !! Set this to a valid interface name on your Mikrotik !!
|
||||
:local InterfaceName "ether5";
|
||||
|
||||
# create a for loop with a step of 10
|
||||
:for VlanId from=100 to=150 step=10 do={
|
||||
|
||||
:put ("Creating VLAN $VlanId on interface $InterfaceName");
|
||||
|
||||
:local VlanName ("vlan" . $VlanId);
|
||||
/interface vlan add name=$VlanName vlan-id=$VlanId interface=$InterfaceName;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue