Tutorials 3 min read

Configure VLANs on a Manageable Switch in 2026: Isolate Your Network

Discover how to effectively isolate your networks using VLAN configuration on a manageable switch. Comprehensive tutorial for 2026.

See our picks
S By Selfhostr Team · no sponsored content
Configure VLANs on a Manageable Switch in 2026: Isolate Your Network
ⓘ ⓘ This article may contain affiliate links (no extra cost to you, it funds the site). As an Amazon Associate, Selfhostr earns from qualifying purchases. See the disclosure.
⏱️
~1 hour
Duration
🎚️
Intermediate
Difficulty
💶
0 € (free software)
Cost
📦
Manageable switch with VLAN support
Key Prerequisites

👍 What we like

  • ✓Isolate networks to improve security
  • ✓Ease network resource management
  • ✓Improve throughput by dividing traffic among multiple VLANs
  • ✓Allow better organization and prioritization of traffic

👎 What to watch

  • ✕Requires a manageable switch with VLAN support
  • ✕May be complex to configure for beginners
  • ✕Potentially increases latency between distinct VLANs

🏆 Our picks

Affiliate links · same price for you
Recommended
📦

TP-Link TL-SG108-M2

Voir sur Amazon

Amazon · price and availability on the listing

Essential
📦

Ubiquiti UniFi Switch Flex 2.5G 8 (USW-Flex-2.5G-8)

Voir sur Amazon

Amazon · price and availability on the listing

See all our recommended gear in the shop.

📑 Contents ▾

This tutorial guides you step-by-step through configuring VLANs on your manageable switch in 2026. The goal is to isolate various parts of your network to improve security and traffic efficiency. You will set up different VLANs, assign ports to the appropriate VLANs, and test communication between VLANs.

Prerequisites

  • A manageable switch with VLAN support (e.g., TP-Link TL-SG108-M2)
  • Physical connection to the switch via an Ethernet cable
  • Basic knowledge of switch command-line interface

Step-by-step installation

Step 1: Connect to the Switch’s Web Interface

To configure VLANs, you must first access the web interface of the TP-Link TL-SG108-M2. Open a browser and enter the IP address of the switch.

Step 2: Create the First VLAN

Go to the VLAN section, click ‘Add’, then enter the following information:

  • VLAN ID: 10 (for personal network)
  • Name: Personal Network Save and repeat for other VLANs such as a visitor network with VLAN ID 20.

Step 3: Assign Ports to VLANs

In the ‘Ports’ section, select each port you want to assign to the personal VLAN (ID 10) or another. Click on the edit icon to change the mode type to ‘Access’. Enter VLAN ID 10 and save.

Step 4: Verify VLAN Configurations

Connect a device to a port assigned to VLAN 10, then try connecting to another network (e.g., visitor network with VLAN 20). Devices should be in different VLANs to prevent any communication.

Step 5: Secure Inter-VLAN Communications

To secure communications between VLANs, enable the VTP protocol if necessary. Also configure switch security rules to block or filter inter-VLAN traffic.

Step 6: Test Communication Between VLANs

Connect two different devices to ports assigned to distinct VLANs (e.g., one port in VLAN 10 and another in VLAN 20). Try sharing files or accessing network resources. If communications are blocked, the configuration is correct.

Verification checks

Use the switch’s web interface to check that all ports have been correctly assigned to their respective VLANs and that security rules are in place. For example, in the ‘Ports’ section, you should see each port with its correct VLAN ID.

To test inter-VLAN communication, try sending a file from a device connected to VLAN 10 to another device on VLAN 20. If the transfer fails, the configuration is successful.

Security and best practices

Ensure your VLAN configuration is secure by enabling HTTPS for the switch’s web interface. Use strong and complex passwords for all administrative configurations. Also enable 2FA if possible to add an additional layer of security.

Troubleshooting common errors

  • Symptom: Devices can access other VLANs

  • Cause: The port is configured in ‘Trunk’ mode instead of ‘Access’

  • Fix: Reset the port to ‘Access’ mode and assign it to the correct VLAN.

  • Symptom: Devices cannot access the Internet via a router or modem

  • Cause: The router/modem port is not configured to allow all VLANs

  • Fix: Configure the router/modem port in ‘Trunk’ mode and permit communication for necessary VLANs.

FAQ

Port Configuration Too Complicated?

  • Try using a graphical tool within the switch’s web interface to simplify port management.

Why Block Communication Between VLANs?

  • Isolating networks can help prevent internal attacks and protect sensitive resources.

How to Add New VLANs After Initial Setup?

  • Add a new VLAN in the switch’s web interface, then assign it to appropriate ports. Update security rules if necessary.

Read also

Tags: switchvlannetworkshomelabsecurity

Related

Tutorials

DIY PoE Camera Setup at Home in 2026: Comprehensive Guide

Discover how to install and wire PoE cameras for home security in 2026 using a network switch, RJ45 cables, and a local recording system. Follow this step-by-step tutorial to secure your property.

Read
Tutorials

Home Network Rack in 2026: A Complete Guide to Structured Wiring, PoE and Cabling

Guide for setting up a clean home network rack in 2026: 12U rack, Cat6a patch panel, unmanaged 2.5 Gbps or PoE+ switch, patching and documentation for a stable homelab.

Read
Tutorials

Upgrade Your Homelab to 10 GbE in 2026: Complete Guide

Discover how to upgrade your homelab to 10 Gigabit Ethernet (GbE) speed with this tutorial covering the necessary network cards, switches, and cables. Ready for 2026?

Read