MikroTik Guide
Isometric illustration of a raised span on a post carrying glowing cubes above two socketed slabs, representing a bridge steering tagged traffic between ports
Networking

VLAN Filtering on RouterOS Bridges Without Lockout

How bridge VLAN filtering, PVID, and tagged and untagged membership work on RouterOS, and which mistakes cut off your own management access.

By MikroTik Guide Editorial · · Updated August 18, 2026 · 4 min read

VLAN configuration on RouterOS trips up more newcomers than routing or firewalling do. The reason is that RouterOS exposes the mechanism rather than hiding it behind a wizard, so you have to understand what a bridge actually does with a tagged frame before the configuration makes sense.

The bridge is the switch

On RouterOS, a bridge is the software switch. Ports added to a bridge share one broadcast domain. Turning on VLAN filtering on that bridge changes it from a flat switch into a VLAN aware one, and from that moment every frame is evaluated against the bridge VLAN table.

Two settings govern each port. The PVID is the VLAN assigned to untagged frames arriving on that port. The frame types setting controls whether the port accepts tagged frames, untagged frames, or both. An access port carrying one VLAN has that VLAN as its PVID and admits only untagged frames. A trunk port carrying several VLANs admits only tagged frames and appears in the tagged list for each VLAN it should carry.

The bridge VLAN table is the other half. Each entry names a VLAN ID and lists which ports are tagged members and which are untagged members. A port that is not a member of a VLAN will not forward that VLAN’s traffic, regardless of its PVID. Getting the PVID right but forgetting the table entry is a frequent cause of a VLAN that silently does nothing.

Where management lives

This is where people lock themselves out. Once VLAN filtering is enabled, the bridge interface itself is treated as a port. If you want to manage the device from a tagged VLAN, you create a VLAN interface on top of the bridge, put the management IP address there, and add the bridge to that VLAN’s tagged member list. Skipping that last step means the router has an address it can never receive frames for.

Enabling VLAN filtering before the table is complete cuts access immediately. The safe pattern is to build the entire VLAN table and the management VLAN interface first, verify the entries, and only then flip filtering on. Doing that work over a console connection, or through a port deliberately left outside the bridge, gives you a way back in. RouterOS also offers a mode that rolls a configuration back automatically if you do not confirm it, which is worth using for exactly this change.

MAC WinBox is the other route back, since it reaches the device over Layer 2 without needing an IP address to be reachable. That only helps if the service was left enabled and scoped to an interface you can still reach, which is one of the decisions made during initial setup of a new RouterOS box.

Hardware offload

Many MikroTik switch models have a switch chip that can perform VLAN filtering in hardware rather than in the CPU. When the configuration is expressed in a way the chip supports, forwarding happens at line rate and the CPU stays idle. When it is not, the same configuration still works but every frame goes through software, and throughput drops sharply on a device with a modest CPU.

Which combinations qualify depends on the switch chip. MikroTik documents that devices using a Marvell Prestera chip, along with the RTL8367, 88E6393X, 88E6191X, 88E6190, MT7621, MT7531, and EN7523 chips, can run bridge VLAN filtering and hardware offloading at the same time under RouterOS v7. Boards outside that list will accept the same configuration and forward it in software instead. Which chip a given model carries is listed on its product page, and the practical consequences per tier are compared in the MikroTik router buying guide.

Practically this means checking whether hardware offloading is actually active on your bridge ports after making changes, rather than assuming it. Certain features force traffic into software, and several bridge and port properties are tied directly to switch-chip settings, so changing them can reset the chip and briefly disable every port on it. Discovering that after deployment, when the device is under load, is a bad time to learn it. If traffic that should never reach the CPU is showing up in the CPU profile, the diagnostic order is set out in why RouterOS throughput drops when CPU load climbs.

Common mistakes

Leaving a port’s PVID at the default while expecting it to carry a different VLAN. Adding a VLAN to a trunk but forgetting the far end of the link. Mixing tagged and untagged membership for the same VLAN on the same port. Treating a VLAN interface on a physical port and a VLAN interface on the bridge as interchangeable, since only one of them sees bridged traffic.

Draw the intended tagged and untagged membership for every port before typing anything. Most VLAN faults are design errors, not syntax errors.

Before you commit to a design

Two things are worth settling before the first bridge command. The first is where management will live and how you get back in if it goes wrong, which is part of the initial hardening pass on a new device. The second is whether the hardware can hold the design in the switch chip at all, because a VLAN plan that falls back to software forwarding turns a wire-speed switch into a CPU-bound one. The RouterOS FastPath and switch-chip sizer shows the difference between offloaded and CPU-bridged forwarding for each hardware tier.

Sources

  1. Bridging and Switching - MikroTik Documentation
  2. Bridge VLAN Table - MikroTik Documentation
  3. Switch Chip Features - MikroTik Documentation
  4. Layer2 misconfiguration - MikroTik Documentation
#routeros #vlan#bridge #mikrotik #switching

Related