How to configure Vlan and switch

Suggest you read this reference first…
http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1