How to create a VLAN on Mikrotik with a manageable switch

Virtual Local Area Networks, or VLANs, are used to create multiple virtual local networks on a single physical interface. This is a layer 2 method that splits a single broadcast domain into multiple broadcast domains. Therefore, proper VLAN planning can improve network performance as well as network privacy. While here Mikrotik Router acts as a router which forwards traffic between network segments.

Here is how to create a VLAN on Mikrotik using a manageable switch. Here the administrator uses a controllable switch D-Link DGS-1210-10.

Read also: What is a VLAN and how does it work

Create a VLAN on Mikrotik with a manageable switch

Manageable switch configuration

1. First you connect your computer to the manageable switch, then you connect to the IP address of the manageable switch. Here is the manageable IP key 10.90.90.90

2. You will then be taken to the Controlled Switch Login Page, then enter the password

D-Link DGS-1210-10 Manageable Login Key

3. After logging in, you go to the menu VLAN ID settings. There should be a default VID with ID 1-10 without tags.

The default identifier can be managed

4. Here, for example, we will create 5 VLANs, first you have to change the default VID, and be sure to change the ports from 3 to 10 to not a member Then port becomes 1 without tags Port becomes 2 . tagged. Because this is the default VLAN, so you can’t change the ID and name. And an important thing if you are configuring Switch Manageable, make sure you are on the correct port without tags. because if The frame leaves the port unmarked, the switch removes the VLAN tag from the frame. and meTraffic will continue as normal. So make sure you are connected to unmarked switch port 1.

VLAN ID default settings

5. Then do the same, and create VLAN2 using port 3 without tags and port 4 tagged And on the other ports make sure Not a member. In fact tagged used When the interface expects a frame containing the VLAN tag. An example is when two switches or a switch and a router are connected, passing tagged traffic. usually Manageable switches use the term “trunk” to refer to a flagged port.

Setting VLAN ID on Switch can be controlled

6. After you have created 5 VLANs, save the manageable switch configuration.

MikroTik VLAN Configuration

1. Next to connect the previously created VLAN, with MikroTik. You go to the menu interfaces Then go to the VLAN tab, then click the icon Add.

MikroTik VLAN menu interface

2. Here you have to adjust VLAN ID And the interfaces. Suppose we will connect the default VLAN means the contents of the partition VLAN ID On mikrotik with 1 because the default VLAN ID is 1. Then for the interface, for example, the default VLAN port 2 that is flagged goes to port 2 of Mikrotik. This means that you populate the interface with ether2.

Configure VLAN Interface on MikroTik

3. Do the same for the following VLAN.

Create a VLAN interface on MikroTik

4. After that you configure the IP in the list IP>Address Then click the icon Add , here you enter the IP address and network. Then in the interface, you populate the VLAN interface.

Configure IP VLAN in MikroTik

Read also: How to configure static and dynamic IP on MikroTik

5. Do the same for each VLAN but different IP address.

Create an IP on MikroTik VLAN

6. After that you play DHCP Server On each VLAN, for faster use DHCP setup. And don’t forget to use the VLAN interface for the interface.

Create a DHCP Server for MikroTik VLAN

Read also: How to make a manual DHCP server on MikroTik

7. Finally, to test it, you can connect each VLAN port without tags to other devices like access points, laptops, computers, and other devices. For example, let’s say we connect our laptop to a virtual VLAN whose port is unmarked on port 1. Then you try to request a DHCP IP address for your laptop, if you get the proper DHCP IP address, this It means that the VLAN you created was successful.

conclusion

This is how to create a VLAN on Mikrotik with a controllable switch. But this method is a bit wasteful of ports on manageable switches and MikroTik routers. In fact we can sacrifice only one port when creating a port tagged. Let’s say we sacrifice port 8 as a tagged path or link to MikroTik. So you change port 8 as specified, in every VLAN you created earlier. Then when you configure VLAN interfaces on MikroTik, you can populate the MikroTik port connected to the manageable port 8 switch in each VLAN you created earlier.

Manageable VLAN Switch

Lots of articles How to create a VLAN on Mikrotik using a manageable switch. Look forward to other interesting articles and don’t forget to share this article with your friends. Thank you…

Leave a Comment

/* */