layer-groupVLAN

circle-info

VLANs (Virtual Local Area Networks) allow you to create multiple logical networks on a single physical infrastructure, providing network segmentation and improved security.

In WinBox you can configure VLANs in Interfaces -> VLAN, or you can use terminal with command /interface vlan

VLANs operate at Layer 2 using 802.1Q tagging to separate traffic into different broadcast domains.


VLAN fundamentals

How VLANs work

VLAN concepts:

  • VLAN ID - Unique identifier (1-4094) for each VLAN

  • Tagged traffic - Frames with VLAN tags (802.1Q)

  • Untagged traffic - Native VLAN frames without tags

  • Trunk ports - Carry multiple VLANs (tagged)

  • Access ports - Single VLAN (untagged)

Benefits:

  • Network segmentation - Separate different types of traffic

  • Security - Isolate sensitive systems

  • Broadcast control - Reduce broadcast domains

  • Flexibility - Easy network changes without rewiring

  • Efficiency - Better bandwidth utilization


Basic VLAN configuration

Create VLAN interfaces

In WinBox go to Interfaces -> VLAN and click +:

  • Name - VLAN interface name (e.g., vlan10-mgmt)

  • VLAN ID - VLAN identifier (10)

  • Interface - Parent interface (bridge1, ether1, etc.)

Assign IP addresses to VLANs


VLAN with bridge configuration

Enable VLAN filtering on bridge

Configure bridge VLAN table

Configure bridge ports for VLANs


Advanced VLAN scenarios

Inter-VLAN routing

Enable communication between VLANs through RouterOS:

VLAN on physical interfaces

Create VLANs directly on physical interfaces:

Multiple trunk configurations


VLAN security and isolation

VLAN isolation with firewall

Private VLANs concept

Implement private VLAN-like functionality:


VLAN with WiFi integration

WiFi SSID to VLAN mapping


VLAN troubleshooting

Diagnostic commands

Common VLAN issues

VLAN packet capture


Dynamic VLAN assignment

802.1X with VLAN assignment

MAC-based VLAN assignment


VLAN monitoring and management

VLAN statistics

VLAN documentation


chevron-rightShow complete VLAN setup with bridgehashtag

VLAN best practices

Design recommendations

  1. Plan VLAN numbering - Use consistent VLAN ID scheme

  2. Document everything - Maintain VLAN documentation

  3. Use meaningful names - Include purpose in VLAN interface names

  4. Implement security - Control inter-VLAN communication

  5. Monitor performance - Track VLAN utilization

VLAN numbering scheme

Recommended VLAN ranges:

  • 1-99 - Infrastructure (management, network equipment)

  • 100-199 - Servers (web, database, application)

  • 200-299 - Users (employees, departments)

  • 300-399 - Guest networks

  • 400-499 - IoT and devices

  • 500-599 - Voice/VoIP

  • 600-699 - Video/surveillance

  • 700-799 - Wireless networks

  • 800-899 - DMZ/public services

  • 900-999 - Testing/development

Security considerations

Last updated

Was this helpful?