Cara membuat VLAN di MikroTik - Via Winbox

3 min read 1 day ago
Published on Nov 12, 2024 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

This tutorial will guide you through the process of creating a Virtual Local Area Network (VLAN) using MikroTik RouterOS via Winbox. VLANs allow you to segment your network into separate paths without needing additional physical interfaces, thus improving network efficiency and management.

Step 1: Access Winbox

  • Download and install Winbox if you haven't already.
  • Open Winbox and log in to your MikroTik router using your credentials.
  • Ensure you are connected to the router’s local network.

Step 2: Navigate to the VLAN Settings

  • In the Winbox interface, find the "Interfaces" menu on the left sidebar.
  • Click on "Interfaces" to open the interface configuration window.

Step 3: Add a New VLAN Interface

  • Click on the "+" (plus) button to add a new interface.
  • Select "VLAN" from the dropdown menu.
  • A new window will appear for VLAN configuration.

Step 4: Configure VLAN Parameters

  • Fill in the following fields:
    • Name: Give your VLAN a descriptive name (e.g., "VLAN10").
    • VLAN ID: Enter the VLAN ID number (e.g., "10").
    • Interface: Select the physical interface (e.g., "ether1") that the VLAN will be associated with.
  • Click "OK" to save the new VLAN interface.

Step 5: Assign IP Address to VLAN

  • Navigate to "IP" in the left sidebar and select "Addresses."
  • Click on the "+" (plus) button to add a new IP address.
  • Fill in the fields:
    • Address: Enter the IP address for the VLAN (e.g., "192.168.10.1/24").
    • Network: This will auto-fill based on the address provided.
    • Interface: Select the VLAN interface you created earlier.
  • Click "OK" to apply the settings.

Step 6: Configure DHCP Server (Optional)

  • If you wish to configure a DHCP server for the VLAN:
    • Navigate to "IP" and select "DHCP Server."
    • Click on the "DHCP Setup" button.
    • Choose the VLAN interface and follow the setup wizard to configure the DHCP settings.

Step 7: Test VLAN Configuration

  • Connect a device to the VLAN and check if it receives an IP address (if DHCP is enabled).
  • Use the ping command to test connectivity between devices in the VLAN and other VLANs or networks.

Conclusion

You have successfully created a VLAN on your MikroTik router using Winbox. This setup allows for better network management and segmentation. As a next step, consider exploring advanced VLAN configurations, such as inter-VLAN routing or implementing security measures to further optimize your network.