SOFTWARE / INFRASTRUCTURE / SECURITY / KENYA
Done
Action completed
Field Notes Wireless Networking & ISP Solutions MikroTik Router Configuration Intermediate • 7 min read

Setting up VLANs

D Author: David Ochieng (ISP Field Operations & NOC Lead)
Reviewed by: Mercy Wanjiku (Full-Stack Software & Systems Engineer)
Published: May 1, 2026 • Last Updated: Nov 22, 2026 • Target Hardware: MikroTik CRS3xx/5xx switches, RB4011, RB5009, and CCR2004/2116 using Bridge VLAN Filtering (RouterOS v7.x).

Purpose: Segment Corporate Staff, Guest Wi-Fi, CCTV, and Network Management traffic onto isolated IEEE 802.1Q VLANs over a single trunk uplink.

Prerequisites

  • Planned VLAN IDs (e.g., VLAN 10 Mgmt, VLAN 20 Staff, VLAN 30 Guest) and managed switch/AP support for 802.1Q tagging.

Step-by-Step Configuration

STEP 01 — Create VLAN Interfaces on the Bridge

Under Interfaces -> VLAN, create vlan10-mgmt, vlan20-staff, and vlan30-guest attached to bridge-main.

STEP 02 — Assign Gateway IP & DHCP per VLAN

Assign distinct IP subnets (10.10.10.1/24, 10.10.20.1/24, 10.10.30.1/24) and dedicated DHCP Servers to each VLAN interface.

STEP 03 — Configure Bridge VLAN Table (Tagged vs. Untagged)

Under Bridge -> VLANs, set Trunk ports (to switches/APs) as Tagged and Access ports as Untagged with matching PVID.

STEP 04 — Enable VLAN Filtering Safely

Enable WinBox Safe Mode first, then check VLAN Filtering on bridge-main and verify management connectivity.

CLI / Configuration Snippet

# RouterOS v7.x — Bridge VLAN Filtering Example (ether2 = Trunk, ether3 = Access VLAN 20)
/interface vlan add interface=bridge-main name=vlan10-mgmt vlan-id=10
/interface vlan add interface=bridge-main name=vlan20-staff vlan-id=20

/interface bridge port add bridge=bridge-main interface=ether2 frame-types=admit-only-vlan-tagged
/interface bridge port add bridge=bridge-main interface=ether3 pvid=20 frame-types=admit-only-untagged-and-priority-tagged

/interface bridge vlan add bridge=bridge-main tagged=bridge-main,ether2 vlan-ids=10
/interface bridge vlan add bridge=bridge-main tagged=bridge-main,ether2 untagged=ether3 vlan-ids=20
/interface bridge set bridge-main vlan-filtering=yes
Expected Results & Verification

Devices on VLAN 20 and VLAN 30 receive separate subnet leases and trunk cleanly across ether2 to managed switches and UniFi/Cambium APs.

Troubleshooting Matrix

Issue:
Fix:
SECURITY HARDENING

Add firewall forward-chain rules blocking inter-VLAN routing from Guest/CCTV VLANs into Staff and Management VLANs.

BACKUP & RECOVERY

Keep a dedicated emergency non-VLAN management port (e.g., ether5) excluded from the bridge during complex VLAN deployments.

D
David Ochieng Delight Engineering Team
ISP Field Operations & NOC Lead
Specialization: Customer Premise Equipment (CPE), SLA Monitoring, VLAN Provisioning & Client Support

Manages daily NOC telemetry, subscriber ticket queues, and on-site client turn-ups across corporate and residential estates in Nairobi.

Tested on Delight Living ISP Network (YouBroadband)
Nairobi NOC • Kabiria Road, Dagoretti South
Related Technical Guides
Was this engineering guide helpful?
Need professional installation, auditing, or troubleshooting? Request Network Consultation →