How to Create VLAN And Bridge in MikroTik Routers

There are two important useful features in MikroTik Router and that I can comfortably call VLAN and Bridge.

These two features are often used in any MikroTik network setups.

 VLAN is a mikrotik configuration feature that divides a physical interface into multiple logical interfaces in every network. This means that you can isolate your network into multiple logical networks on a physical interface.

If we also take a look at the other feature, {a BRIDGE.} MikroTik Bridge is a configuration feature that integrates multiple physical interfaces in a logical interface. 
With this simple definition if your thinking what am thinking, you will find out that with a bridge, you can extend your broadcast domain on multiple physical interfaces and can as well extend your popular services such as PPPoE or DHCP on multiple physical interfaces. 
From the outline above you will come to realize how important VLAN and Bridge are in every network, especially here in  MikroTik network. For this reason,I designed this tutorial to show the necessary steps we can configure VLAN and Bridge in MikroTik Router.
First I will take on VLAN.
VLAN (Virtual Local Area Network) is used to create multiple virtual LANs on a single physical interface. It is a layer 2 method that divides a single broadcast domain into multiple broadcast domains. It is important to properly plan our VLAN configuration because it can increase our network performance as well as network privacy.

If I must tell you the truth, there are various situations that you can just skip VLAN in your configurations, so then, you need to create VLAN in your MikroTik router. 

For example, if your ISP provides your WAN connection through a VLAN, you have to create a VLAN on your WAN interface or if you need to isolate your VIP users from other network users for any security purpose, VLAN will be a better solution to isolate your physical network into multiple logical networks.
How to Create VLAN in MikroTik
VLAN can easily be created in MikroTik router like other network devices.

I have make the following steps very simple to show you how to create VLAN in your MikroTik Router. 
so then Login to your MikroTik Router by winbox with your correct login credentials.
Click on Interfaces menu from left menu bar and then click on VLAN tab.
Click on PLUS SIGN (+) to add new VLAN interface. 
A new window named New Interface will appear.
Put your VLAN name what you want in Name input field.
Put your VLAN id in VLAN ID input field. If you want to create VLAN for WAN connection, your ISP will provide you the VLAN ID. If you want to create VLAN for your network, provide an integer number between 1 to 4095 what you wish.
Now choose your physical interface on which you want to create VLAN from Interface dropdown menu.
Click Apply and OK button.

With this configuration,you have created a new VLAN interface. Similarly, you can create as many VLANs as you want following the above steps.

Your newly created VLAN interface will behave like a physical interface.

 So, you can assign an IP on this VLAN interface as well as you can use this interface for routing. You will find your newly created VLAN interface all the places where there is an option to select interface such as assigning IP address on an interface, selecting your network gateway interface and so on.
If you wish to create VLANs for your local network, you have to configure a manageable switch where there will have access ports and trunk port. Connect your MikroTik physical interface on which VLAN is created to your switch trunk port and connect your user to access ports. Then, you will be able to create a VLAN network with MikroTik properly.
MikroTik Bridge
You will notice that every port in MikroTik Router is a layer 3 port by default, and its keep in different broadcast domain. So, if you create a PPPoE server or a DHCP server on any interface, the service cannot be accessible from any other interfaces and other interfaces keep unused sometimes. If you want to use these unused interfaces and want to access your DHCP or PPPoE server from all the interfaces, you have to turn your layer 3 ports to layer 2 ports and bind them to a layer 3 logical port. MikroTik bridge feature has come for this purpose.

MikroTik Bridge turns layer 3 ports to layer 2 ports and bind them with a logical layer 3 port. So, all the bridge ports as well as the logical layer 3 port keep in the same broadcast domain. Now it is possible to access any service like PPPoE or DHCP from any bridged MikroTik port.
How to Create Bridge in MikroTik Router

There are two major steps to create Bridge in MikroTik Router. First step is creating a logical bridge interface and second step is binding your desired physical interface to this logical interface. Following steps will show you the complete bridge configuration in MikroTik Router. 

Login to your MikroTik Router by winbox with your login credentials.
Click on Bridge menu item from left menu bar. Bridge window will appear now.
Click on Bridge tab if not selected and then click on PLUS SIGN (+). New Interface window will appear.
Put your bridge interface name as you wish in the Name
Click Apply and OK .
Now click on Ports tab and then click on PLUS SIGN (+). New Bridge Port window will appear.
Choose your physical interface that you want to bind to the bridge interface from Interface dropdown menu.
Choose your Bridge interface that you created before from Bridge dropdown menu.
Click Apply and OK.

Creating logical bridge interface and binding physical interfaces to this bridge interface have been completed. Now any service that is created on bridge interface will be accessible from your bound physical interfaces easily.

If you face any problem to do above steps properly,please leave a comment, let us know your opinon and if have any question and suggestion please  

Leave a Reply

Your email address will not be published. Required fields are marked *