Configure VLANs and Layer 3 Routing within RouterOS
In my current setup I have a MikroTik RB751G-2HnD running software version 6.0rc12. This is connected to the Linksys SRW2016 16 port Layer 2 Gigabit switch. On the Linksys I’ve configured the required VLANs and trunked the port that connects the switch to the router:
I’ve also trunked the ports that connect to my ESXi hosts so all VLANs can pass through. Now, to configure the VLANs within the MicroTik router simple connect up via Winbox and select Interfaces and then the VLAN tab. Create all the VLANs you require and click Apply:
To add layer 3 functionality so you can route between VLANs select IP and then Addresses and simply add IP addresses to each VLAN:
If all has been successful you should be able to ping the default gateway for each VLAN from any other VLAN.