MikroTik Bridge VLAN Filtering – Full Setup Tutorial for Secure Your Network
MikroTik Bridge VLAN Filtering – Full Explanation with Configuration
Bridge VLAN Filtering in MikroTik is essential when you're managing VLANs (Virtual LANs) using hardware offloading for high performance (using a bridge instead of a router). It's the modern and efficient method for VLAN management in RouterOS 6.41+ and RouterOS v7.
๐ What is Bridge VLAN Filtering?
Bridge VLAN filtering allows you to isolate or segment traffic on different VLANs through one bridge interface, applying VLAN rules per-port efficiently.
๐งฑ Key Concepts for VLAN Filtering:
-
Bridge: Logical switch combining multiple interfaces.
-
VLAN: Virtual separation of Layer 2 domains.
-
PVID (Port VLAN ID): Used for untagged incoming traffic.
-
Tagged: Traffic with VLAN ID.
-
Untagged: Plain Ethernet traffic.
✅ Example Scenario for the Mikrotik Configuration.
If We have:
-
ether1 as uplink to trunk (to switch or another router)
-
ether2 for VLAN 10
-
ether3 for VLAN 20
๐ฏ Goal:
-
Create VLAN 10 and VLAN 20.
-
Pass VLAN traffic using bridge with filtering.
-
Make sure each port can only communicate within its VLAN.
⚙️ Step-by-Step Configuration (CLI)
๐น Step 1: Create a Bridge
๐น Step 2: Add Ports to the Bridge
-
ether1: Trunk port (allows tagged VLANs) -
ether2andether3: Access ports (untagged, assigned PVID)
๐น Step 3: Add VLANs to the Bridge
๐น Step 4: Add VLAN Interfaces (optional for routing or IP assigning)
๐น Step 5: Assign IP Addresses (if needed)
๐งช Verify of your configuration
-
See bridge VLAN configuration:
-
Check PVIDs and ports:
-
Monitor traffic:
๐ก️ Security Tips to configure this in Mikrotik.
-
Always filter VLANs to block unnecessary traffic.
-
Set
vlan-filtering=yesto activate rules. -
Avoid placing management access on trunk ports without proper firewall rules.
Comments
Post a Comment