Have a read through this reference, there is an example for your case.
http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1
Have a read through this reference, there is an example for your case.
http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1