


Understand VLANs and IEEE 802.1Q tagging.
Configure VLANs on MikroTik routers and switches.
Set up trunk ports for multiple VLANs.
Set up access ports for client devices.
Enable secure communication between VLANs.
Design and implement a small office network using VLANs to ensure secure and efficient communication between departments.
"VLANs enhance network security, performance, manageability, and scalability – essential for modern business and campus networks."
Network Segmentation, Isolate traffic to protect sensitive information.
Reduce congestion and improve performance.
Precise control over access and resources.
VLANs make it easy to add or change devices without disrupting the network.

Logically segment physical network into multiple, isolated networks.
Improve security, optimize performance, manage network resources efficiently.
Network within a network for private department communication.

Industry standard for VLAN tagging.
Each data packet tagged with VLAN ID.
Includes VLAN information.
Default traffic with no VLAN information.

A port that carries multiple VLANs, typically between switches or to a router.
A port that carries traffic for only one VLAN, typically connected to end-user devices.
Acts as both access and trunk port.

Enables communication between different VLANs.
Router or Layer 3 switch routes traffic between VLANs.
Maintains security while allowing controlled communication.

GO38.net is a growing company, HR and IT shared the same network. HR needed data privacy, while IT often tested tools, creating heavy traffic. One day, Mark from IT tested a monitoring tool and accidentally accessed HR’s data, raising privacy concerns. Tensions grew between the departments.

As the company expanded, network overload became an issue. IT’s updates slowed down HR’s work, frustrating both teams. Management saw a need for change to improve security and performance.
Sensitive data exposed to other departments.
Devices interfere with HR's communications.
Implement VLANs to segment network by department.

Each participant in your group will be equipped with a RouterBOARD – at least 2 wireless (dualband) and 5 Ethernet interfaces, a laptop computer, Ethernet cable(s).


Second ROS device from your partner
(required for the step 2 )




Two UTP cables

Connect to the Router using WinBox.
Create VLAN interfaces on the trunk port (e.g., ether2):
Assign IP addresses to the VLAN interfaces:
VLAN 10: 172.16.10.254/24
VLAN 20: 172.16.20.254/24
Set up DHCP servers for each VLAN:
Test your configuration:
Connect a computer to Port 2.
Set the computer’s VLAN ID on its network interface to match the VLAN ID.
[Tip] Enable RoMON on the router to help with future management.

The next step requires two devices, so I encourage you to do the lab in pairs.

Reset the second router (if no switch is available) and set it to Bridge Mode.
Connect to the switch using WinBox.
Check the first bridge (bridgeLocal) and make sure VLAN filtering is disabled.
Create two VLANs under Bridge -VLANs:
(1) Bridge= bridgeLocal, VLAN IDs=10,Tagged=ether1,Untagged=ether2 and ether3
(2) Bridge= bridgeLocal, VLAN IDs=20,Tagged=ether1,Untagged=ether4 and ether5
Assign the Port VLAN ID (PVID) for each port under Bridge->Ports:
(1) ether2 VLAN, set PVID=10
(2) ether3 VLAN, set PVID=10
(3) ether4 VLAN, set PVID=20
(4) ether5 VLAN, set PVID=20
Go back to Bridge and enable VLAN filtering.

Inter-VLAN routing allows communication between different VLANs. To achieve this, you'll configure routing rules on a router that connects the VLANs. This ensures that traffic can flow between devices in different VLANs.
Go to IP -> Routes on the router.
Add a route to allow traffic between VLAN 10 and VLAN 20.
Ensure there are no firewall rules blocking inter-VLAN traffic.
Connect devices to the following ports:
Test communication with the following commands:
Test inter-VLAN communication:
Check that VLAN IDs and IP settings match on the router and switch.
Confirm that the trunk port is set up correctly for tagged VLAN traffic.
Ensure firewall rules allow inter-VLAN communication.

Try adding more Switches to your network to create a more complex and efficient infrastructure.
Create new VLANs to support different departments and test their connectivity.
Verify that devices in different VLANs can communicate correctly.


You configured VLANs on both a router and a switch.
You created trunk and access ports to manage network traffic effectively.
You enabled inter-VLAN routing and tested communication between different VLANs.
You learned to troubleshoot common VLAN issues and address connectivity problems.
You understand how to segment networks to enhance security.
Use VLANs in real-world projects and networks.
Set up VLANs on home network or school lab.
Select a suitable troubleshooting approach.
Discover advanced features in MikroTik RouterOS.
A special thanks to MikroTik for giving me this incredible opportunity.
Eric Hsin in Riga, Latvia , from Taiwan , eric@gmail.com
Welcome to