How to accomplish vlan addition in crs 317

hello,
My switch huawei 6720 became dead. I’d crs 317 in stock. Now i wanted to do configuration is like
inter xg 0/0/2
port trunk allow-pass vlan 201 to 202 217 to 218 230 312 317 324 327 358 to 360 365 to 368 387

inter xg 0/0/3
port trunk allow-pass vlan 221 230 to 231 266 268 323 327 358 382
inter xg 0/0/4
port trunk allow-pass vlan allow 200 to 499
inter xg 0/0/5
port trunk allow-pass vlan allow 200 to 499

port xg 4 and 5 are uplink ports running rstp.
Its a matter of seconds in cisco huawe but coulndt do it on mikrotik crs bcoz mikrotik adds ports to vlans and other switches vlans to ports.
is there any easy way of doing without creating separate entries of each vlan. This is just an example. Actual vlans are around 50+
thanks

The CRS317 is a dual-boot device RouterOs and SwitchOS:
https://mikrotik.com/product/crs317_1g_16s_rm

Command line interface is only available in RouterOS, and configuring VLANs in RouterOS is actually a bit more complicated.

SWos on the other hand is GUI and should be easier to configure.

For me depends.
Port based trunks swos
vlan (802.1q) based trunks, RoS

ty, lets forget swos. Never wanted to use swos. So its not easily possible on ros ?

thanks

I had to use a spreadsheet to generate the VLAN tagging configuration I needed for my MikroTik MLAG setups.

For simple cases where all VLANs on the switch (or router) are going to be in the bridge, this is a chunk of script I used to grab the VLAN-IDs for all vlan interfaces I had created. It then added them and the necessary bridge interfaces to the bridge VLAN list. For me, the VLANs were tagged to the bridge and to a bond interface I had created, but for this example I changed it to sfp+1 and sfp+2.

You can get the list from any array, so you could simply type the list of VLAN IDs in the ‘vlan=[…]’ section below.

:foreach v in=[/interface vlan find] do={ \
/interface/bridge/vlan/add vlan=[/interface/vlan get $v value-name=vlan-id] \
bridge=bridge tagged=sfp-sfpplus1,sfp-sfpplus2 \
}

should be if its a vlan filtering friendly
example:
https://www.youtube.com/watch?v=YLtGQAQ8iS0&t=1522s

ty all for ur suggetion. I’ll simply consider its not possible. Mikrotik developers s hould consider it. Vlans should be added in >bridge>ports as tagged and untagged, rather than bridge>vlans. How many of you think it should be added in bridge ports ?
thanks

Most everything is possible with vlans on RoS. I suggest MT is not for you as it takes a bit of work on your part, as it has for everyone else here.

“Consider it’s not possible” to whip out in 10 seconds? No, not without some scripting or preparation. It takes a bit of doing, for sure. But I’m running an ISP serving 1000’s of people with dozens of MikroTik switches, several of them in MLAG configurations (so VLAN settings are duplicated), and dozens of VLANs. And it’s humming along fine.

ty, I will just say too tedious for large networks. I would just say buying a 1000+ $ switch and not able to do it easily. My submission was mikrotik should change vlans addition to bridge > ports. I dont use mikrotik in my network. there only few and total network is 1000+ switches, 300g traffic. Lets close the topic and mikrotik support to ponder over this matter.
ty all