Implementing Vlans on Mikrotik routers is quite simple and interesting. Just follow the steps below:
Step1 : Create a bridge and add your preferred trunk port to the bridge.
Step2: Create your Vlans making sure that the vlan IDs are the same with the vlan IDs on the switch. Assign IPs to the Vlan interfaces accordingly.
Step3: Finally, configure NAT using the source addresses from the vlans or the Vlan interfaces as “in interface”.
On your switch, make sure the port connected to the Mikrotik is configured as a trunk port, configure the rest as access ports. Create vlans (which must be the same as those you have on your Mikrotik router) and assign ports to your vlans. Thats all.