Virtual LANs (VLANs) are essential for segmenting a network into multiple broadcast domains, improving performance, and enhancing security. MikroTik routers, powered by RouterOS, provide robust support for VLANs. Whether you’re working in a business or home network environment, learn how to configure VLANs on a MikroTik device. This can help you better manage traffic and control access.
VLAN Configuration on MikroTik Router
This guide walks you through the steps to configure VLANs on a MikroTik router. Are you wondering how to configure VLAN on Mikrotik? You will learn to do this using both the Winbox GUI and CLI (Command Line Interface).
Prerequisites
- A MikroTik router with RouterOS installed
- Access to the router (Winbox or terminal)
- Basic understanding of networking and IP addressing, including VLAN configuration.
Step: VLAN Configuration via Winbox (GUI)
1. Open Winbox connect to MikroTik

2. Add a VLAN interface
- Go to Interfaces → Click on the “+” and choose VLAN.
- Fill in the following:
- Name: e.g.,
vlan10
- VLAN ID: e.g.,
10
- Interface: Choose the physical interface to attach the VLAN (e.g.,
ether2
)
- Name: e.g.,
- Click OK.

3. Assign IP address to the VLAN
- Go to IP → Addresses
- Click “+”
- Set the Address (e.g.,
192.168.10.1/24
) - Choose your new VLAN interface (e.g.,
vlan10
) - Click OK

Click “+” and Enter your IP Address for your LAN in Network

4. Set up a DHCP Server (optional)
- Go to IP → DHCP Server
- Use the wizard to assign a DHCP server to
vlan10
if needed.

At DHCP go to DHCP Set up

Select Vlan10 for VLAN Interface => Next

Enter IP Address in your network => Next

Set up the Default Gateway of your VLAN Network => Next

Add an IP Address pool, you can exclude some IP Addresses if you need to keep for your other use. Here, I keep 10 IP Addresses and from 11 – 254 for the DHCP Network.

Enter the DNS, I use the Public DNS of Google 8.8.8.8

Set the release time in the network to 8 hours. You can put 4 hours or other time up to you.

Now our DHCP Server is set up successfully.
5. Create firewall rules (optional)
- Control traffic between VLANs using IP → Firewall → Filter Rules
VLAN Configuration via CLI
# Create VLAN interface
/interface vlan add name=vlan10 vlan-id=10 interface=ether2
# Assign IP address to VLAN
/ip address add address=192.168.10.1/24 interface=vlan10
# (Optional) Configure DHCP server for VLAN
/ip pool add name=dhcp_pool10 ranges=192.168.10.10-192.168.10.100
/ip dhcp-server add name=dhcp10 interface=vlan10 address-pool=dhcp_pool10 disabled=no
/ip dhcp-server network add address=192.168.10.0/24 gateway=192.168.10.1
Final Thoughts
Configuring VLANs on MikroTik routers allows you to isolate traffic, enforce security policies, and organize network resources efficiently. Whether through Winbox or the CLI, the process is straightforward once you understand the steps. Always test connectivity between VLANs and review firewall rules to ensure they align with your network policy.
If you plan to configure VLAN trunking or inter-VLAN routing, you’ll need additional configuration on switches and routers. Check out some switches and routers, Mikrotik at Amazon, to aid in configuring VLAN on them.
TP-Link 24 Port GE Switch Review
The TP-Link 24 Port Gigabit Ethernet Switch (TL-SG1024S) is a robust networking solution. It is designed by TP-Link, a well-known manufacturer in the networking industry. This unmanaged switch is ideal for expanding networks in both home and small office environments. It provides reliable connectivity for multiple devices. No complex configurations are needed.
Product Overview
This switch has 24 ports supporting 10/100/1000Mbps RJ45 connections. It facilitates seamless data transfer across devices. It also supports Auto Negotiation and Auto MDI/MDIX. The TL-SG1024S is designed for performance. It also emphasizes energy efficiency and quiet operation due to its fanless design.
Design and Build Quality
The TP-Link TL-SG1024S sports a sturdy metal casing that enhances durability and heat dissipation. Its compact dimensions (11.6″L x 7.1″W x 1.7″H) make it suitable for both desktop and rackmount setups, fitting perfectly in standard 1U racks. The black finish is sleek and professional, making it a suitable addition to any workspace.
Key Features
- 24 x 10/100/1000Mbps RJ45 Ports for high-speed connectivity.
- Auto Negotiation and Auto MDI/MDIX support for flexibility.
- Fanless design for silent operation, ideal for noise-sensitive environments.
- Energy-efficient technology to minimize power consumption.
- Sturdy metal housing for enhanced durability and heat management.
- Plug-and-play setup for easy installation.
- 3-year warranty and technical support from TP-Link.
User Experience
In various scenarios, users have reported a positive experience with the TP-Link TL-SG1024S. Many have highlighted its plug-and-play functionality, which allows even non-technical users to set it up without any hassle. The switch has proven effective for connecting multiple devices such as gaming consoles, smart TVs, and PCs. It maintains stable speeds and efficient performance even under load.
One user mentioned using the switch to connect their Wi-Fi extender. This resulted in significantly improved internet speeds. The reliability for their gaming and streaming needs was also enhanced. Another user praised the switch for its low operational temperature and energy efficiency, indicating a well-implemented design.
Pros and Cons
Pros
- Easy setup with plug-and-play functionality.
- Robust build quality with a durable metal casing.
- Silent operation due to the fanless design.
- Stable and consistent performance across all ports.
- Energy-efficient, leading to lower power consumption.
- 3-year warranty with technical support enhances customer confidence.
Cons
- May require additional considerations for wall mounting due to design.
- Unmanaged switch lacking advanced features for professional setups.
Conclusion


The TP-Link 24 Port Gigabit Ethernet Switch (TL-SG1024S) is reliable. It offers high-performance as a networking solution. It is ideal for users looking to expand their wired connections. Its durability, energy efficiency, and ease of use make it a solid choice for both home and small office environments. It may not suit those needing advanced management features. However, its plug-and-play nature and consistent performance make it highly recommended for anyone in need of a straightforward, effective switch.
Discover more from How To Kh
Subscribe to get the latest posts sent to your email.
2 Comments
k7ydtt
Howdy! This blog post couldn’t be written much better!
Going through this post reminds me of my previous roommate!
He continually kept preaching about this.
I am going to forward this information to him.
Fairly certain he’s going to have a very good read.
Many thanks for sharing!
Visit my web site – paving flags