Skip to content
Back to Series Homelab from Scratch
Networking

Homelab Network Topology: From Zero to Advanced Network

A complete guide to building a homelab network topology from scratch, from basic setup to VLANs, MikroTik, and RT/RW Net.

A
Alif Afriza Author
· · 5 min read
Homelab Network Topology: From Zero to Advanced Network

Building a good network topology is the foundation of every serious homelab. This article will discuss how to design a network from a simple setup to advanced configuration with VLANs and MikroTik.

Why Is Network Topology Important?

A good network topology provides:

  • Traffic isolation: servers and home devices are separated
  • Security: controlled access to sensitive services
  • Performance: traffic does not interfere with each other
  • Scalability: easy to add new devices
  • Monitoring: can monitor traffic per segment

Basic Homelab Topology

Simple Setup (Minimal Budget)

[Internet] → [IndiHome Modem] → [WiFi AP] → [Server]
                                        → [Laptop]
                                        → [Phone]

Characteristics:

  • All devices on one subnet (192.168.1.0/24)
  • No network isolation
  • Suitable for a simple homelab

Configuration:

# Static IP on the server
sudo nano /etc/netplan/01-lan.yaml
network:
  version: 2
  ethernets:
    enp2s0:
      dhcp4: false
      addresses:
        - 192.168.1.13/24
      routes:
        - to: default
          via: 192.168.1.1
      nameservers:
        addresses:
          - 8.8.8.8
          - 8.8.4.4

Medium Setup (Serious Homelab)

[Internet] → [Modem] → [MikroTik hEX] → [Managed Switch]
                                          ↓
                            [VLAN 10: Server] → [Server]
                            [VLAN 20: Trusted] → [Laptop, Phone]
                            [VLAN 30: IoT] → [Smart Devices]
                            [VLAN 99: Management] → [AP, Switch]

Characteristics:

  • VLANs for traffic isolation
  • Managed switch for VLAN tagging
  • MikroTik as the main router
  • Suitable for a homelab with many services

Advanced Setup (Production-Grade)

[Internet] → [Modem Bridge] → [MikroTik RB4011] → [24-Port Managed Switch]
                                                       ↓
                                            [VLAN 10: Server Farm]
                                              → [Proxmox Node 1]
                                              → [Proxmox Node 2]
                                            [VLAN 20: Workstations]
                                              → [Desktop, Laptop]
                                            [VLAN 30: IoT/Smart Home]
                                              → [CCTV, Smart Lights]
                                            [VLAN 40: Guest Network]
                                              → [Guest WiFi]
                                            [VLAN 99: Management]
                                              → [AP, Switch, IPMI]

VLAN Configuration on MikroTik

Step 1: Create a Bridge

# Log in to MikroTik via WinBox or SSH
/interface bridge
add name=bridge1 protocol-mode=rstp

# Add ports to the bridge
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5

Step 2: Create VLAN Interface

# VLAN 10 - Server
/interface vlan
add interface=bridge1 name=vlan10-server vlan-id=10

# VLAN 20 - Trusted
add interface=bridge1 name=vlan20-trusted vlan-id=20

# VLAN 30 - IoT
add interface=bridge1 name=vlan30-iot vlan-id=30

# VLAN 99 - Management
add interface=bridge1 name=vlan99-mgmt vlan-id=99

Step 3: DHCP Setup per VLAN

# DHCP Server for VLAN 10
/ip dhcp-server
add address-pool=vlan10-pool interface=vlan10-server name=dhcp-vlan10

/ip dhcp-server network
add address=192.168.10.0/24 dns-server=8.8.8.8 gateway=192.168.10.1

/ip pool
add name=vlan10-pool ranges=192.168.10.100-192.168.10.254

/ip address
add address=192.168.10.1/24 interface=vlan10-server

# Repeat for other VLANs with different subnets

Step 4: Firewall Rules

# VLAN isolation - server cannot be accessed from IoT
/ip firewall filter
add chain=forward src-address=192.168.30.0/24 dst-address=192.168.10.0/24 action=drop comment="Block IoT to Server"

# Allow trusted to server
add chain=forward src-address=192.168.20.0/24 dst-address=192.168.10.0/24 action=accept comment="Allow Trusted to Server"

Server Configuration with Dual NIC

If your server has 2 network cards, you can use them for network segmentation:

# NIC 1 - For internet access (192.168.1.13)
# NIC 2 - For server VLAN (192.168.10.10)

# Configuration via netplan
sudo nano /etc/netplan/02-server.yaml
network:
  version: 2
  ethernets:
    enp2s0:
      dhcp4: false
      addresses:
        - 192.168.1.13/24
      routes:
        - to: default
          via: 192.168.1.1
    enp3s0:
      dhcp4: false
      addresses:
        - 192.168.10.10/24

WiFi Access Point Setup

Using HFR H734G as a Bridge

[MikroTik] → [HFR H734G AP Mode Bridge] → [WiFi Clients]

Configuration:

  • AP Mode: Bridge (not Router)
  • SSID: “Server1” for the trusted network
  • Security: WPA2-PSK (at minimum)
  • Channel: Auto or manually select the least congested

Separate SSID per VLAN

Trusted Network: "HomeNet-Trusted" → VLAN 20
IoT Network: "HomeNet-IoT" → VLAN 30
Guest Network: "HomeNet-Guest" → VLAN 40

Network Monitoring

Use Prometheus + SNMP

# docker-compose.yml
version: '3'
services:
  snmp-exporter:
    image: prom/snmp-exporter
    ports:
      - "9116:9116"
    volumes:
      - ./snmp.yml:/config/snmp.yml

  prometheus:
    image: prom/prometheus
    ports:
      - "9090:9090"
    volumes:
      - ./prometheus.yml:/etc/prometheus/prometheus.yml

Check Traffic per Interface

# Check incoming/outgoing traffic
iftop -i enp2s0

# Or use nload
nload enp2s0

# Or use vnstat for daily statistics
vnstat -i enp2s0

Troubleshooting Tips

1. Cannot Access Server from Another VLAN

# Check firewall rules
sudo iptables -L -v

# Check routing
ip route show

# Check whether the port is open
sudo netstat -tlnp | grep :80

2. VLAN Not Detected

# Check VLAN configuration
cat /proc/net/vlan/config

# Check whether the interface is up
ip link show

3. WiFi Cannot Connect to a Specific VLAN

# Check AP configuration
# Make sure the SSID maps to the correct VLAN
# Check the trunk port on the switch

Case Study: Real Homelab Topology

Requirements:

  • Homelab server for web, database, monitoring
  • WiFi for trusted devices
  • Isolated IoT (CCTV, smart home)
  • Guest network for guests

Solution:

  • Router: MikroTik hEX S (IDR 800k)
  • Switch: TP-Link SG108E managed (IDR 400k)
  • AP: HFR H734G (already available)
  • Server: Ubuntu Server 22.04 (already available)

Results:

  • 4 isolated VLANs
  • Traffic monitoring via Grafana
  • Separate guest network
  • IoT cannot access the server

Conclusion

A good network topology is the foundation of a successful homelab. Start with a simple setup, then upgrade to VLANs and a managed switch as your needs grow. The most important thing is to understand your needs before designing the network, and always document every configuration you make.

Open for Contributors

Your ideas deserve to be read by thousands of people.

ByteNesia is built for everyone. If you have experience, tutorials, or opinions about technology, write and share them here. Your name will be credited as a contributor.

Write anything: tool reviews, homelab tutorials, security tips, or your tech stories.

Discussion & Comments