Pages

Friday, 12 April 2013

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:
image
image
   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:
image
   To add layer 3 functionality so you can route between VLANs select IP and then Addresses and simply add IP addresses to each VLAN:
image
   If all has been successful you should be able to ping the default gateway for each VLAN from any other VLAN.

2 comments:

  1. thnx for the post..what I have to do if i have a Cisco router connected to the layer 2 switch,and the switch is connected to the mikrotik router where i have to built 2 subnets?

    ReplyDelete
  2. Hi,

    Have you tried trunking the Mikrotik router to the switch and configuring the two VLANs / subnets on the switch and then trunk that to the other router? Apologies, but I'm not great at networking and hopefully someone else might reply.

    Good luck

    Michael

    ReplyDelete