# Uncertainty regarding VLANs

**URL:** <https://forum.mikrotik.com/t/uncertainty-regarding-vlans/273902>\
**Category:** Beginner Basics\
**Created:** [October 18, 2026, 4:50pm UTC](https://forum.mikrotik.com/t/uncertainty-regarding-vlans/273902 "2026-10-18T16:50:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bloodynetworker](https://forum.mikrotik.com/letter_avatar/bloodynetworker/32/6_449c533f586939b6e5f246632a46421f.png) [@bloodynetworker](https://forum.mikrotik.com/u/bloodynetworker)\
**Post date:** [October 18, 2026, 4:50pm UTC](https://forum.mikrotik.com/t/uncertainty-regarding-vlans/273902/1 "2026-10-18T16:50:37Z")

</div>

I have two hAP ax S. The "Main" MikroTik Box is connected to the WAN and through one port also serves the other hAP ax S I'll call "Office" MikroTik Box. The "Main" MikroTik Box is obviously the CAPsMAN and the "Office" the CAP. Here is an illustration of how I imagine my setup:

* * *

Main:

_1_ -\> WAN

_2_ -\> [...]

_3_ -\> Trunk port to Office port 1

_4_ -\> [...]

_5_ -\> [...]

Office:

1 -\> connected to trunk port 1 of "Main"

_2 - 5_ -\> untagged ??? (GUEST)

* * *

In general, it's just about those three VLANs FAMILY, GUEST, JAIL and each of them have a corresponding WiFi. Here is my vague understanding / questions that I hope you guys can confirm / explain (please read through all questions **at once** so you get the whole picture as there are connections between those questions, thanks 🙏 ):

1. As I understand it, in order for a device to use any WiFi near the "Office" the VLAN ID needs to be "upheld" during transmission, which I think means the connection through "Main" has to run through a trunk port. Now I imagine I'll only need a trunk port on "Main" since the WiFi will automatically tag the device traffic accordingly, which begs the question: Do I leave port 1 of "Office" untagged, which is connected to trunk port 3 of "Main"?
2. Aside from that, I want any ethernet connection to the "Office" Box be put into the GUEST VLAN (port 2 - 5). Now one part my understanding of VLANs tells me that this scenario only requires untagged ports and the other part disagrees because untagged would mean once the traffic leaves through port 1 to the "Main" Box it would have no idea how to handle that traffic since it's not associated with any VLAN. So for my use case... what do I require, tagged or untagged ports for 2 - 5?
3. If I require tagged ports for GUEST I would only have to specifically recreate the VLAN GUEST with the same ID on the "Office" Box?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![DCO](https://forum.mikrotik.com/letter_avatar/dco/32/6_449c533f586939b6e5f246632a46421f.png) [@DCO](https://forum.mikrotik.com/u/DCO)\
**Post date:** [October 18, 2026, 5:38pm UTC](https://forum.mikrotik.com/t/uncertainty-regarding-vlans/273902/2 "2026-10-18T17:38:02Z")

</div>

I assume that the 'Office' Mikrotik box is the one that will host the 3 Wifi networks and acts an access point + managed switch, and all routing is done on the 'Main' box?

Your scenario is very similar to what is described in this article: [VLANs on Wireless | RouterOS Manual](https://manual.mikrotik.com/docs/wireless/abgn/vlans-on-wireless/)

1. For each Wifi network (SSID) you must configure the SSID to tag/untag all network traffic (it acts as a wireless access port). But the VLANs must be carried all the way to the 'Main' box. So you must add the VLANs as tagged to ether1 on the office box and ether3 on the main box (trunks). The VLAN traffic passes through these ports as tagged traffic.
2. These ports should be access ports, so untagged. Make sure the set the pvid of these ports to the correct VLAN ID.  
Untagged means that traffic from the user devices arrives at those ports as untagged traffic. The ports (access) will then tag the traffic with the pvid. VLAN traffic flowing to the user devices will be untagged by the ports.  
Again, you must also add the VLANs to ether1 on office and ether3 on main.
3. Not applicable

This post I recently made can also help a little with the understanding of the link between Interfaces, Bidge and VLANs: [https://forum.mikrotik.com/t/small-routeros-beginners-guide/273745](https://forum.mikrotik.com/t/small-routeros-beginners-guide/273745)

---

<div class="post-metadata">

**Author:** ![Buckeye](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/buckeye/32/2242_2.png) [@Buckeye](https://forum.mikrotik.com/u/Buckeye)\
**Post date:** [October 18, 2026, 7:31pm UTC](https://forum.mikrotik.com/t/uncertainty-regarding-vlans/273902/3 "2026-10-18T19:31:47Z")

</div>

I will assume the "main" config is similar to the one posted [here](https://forum.mikrotik.com/t/dns-config-not-functioning-properly/273898)?

When you used the Config generator did you use the "mulitiple device" or "single device mode"?

The multiple is nice because it allows for a single entry of vlan info, and you can then use the Network board, and that allows you to choose the ports being used to connect devices.

Considering your proposed setup: I woud not use port 1 of the Office "cap" as the connection to port 3 of the Main router. The reason: port 1 on the [E62iUGS](https://cdn.mikrotik.com/web-assets/product_files/E62iUGS-2axD5axT_260643.png) is not part of the switch, so all bridging (layer 2 switching operations) on port 1 will involve the CPU. Instead use ether 2 (or if you want the other remaining ports to be in a contiguous set, use port 5 for the trunk to the router. Doing this should not affect the behaviour, but it will allow the layer 2 operations to happen in the dedicated switch circuitry instead of by the CPU. You can still use port 1, but it would be the last port I would use, or it should be dedictated to a low use device. That will result in the least CPU being used.

Now to your questions:

1. The "Office" device should be configured essentially a "managed switch", not a router. It will have all the vlans defined in the bridge, but the only vlan interface should be the one used for the management of the "Office device". Using the "multi-device site mode" of the Config generator is the preferred method to use when multiple devices may be used, especially when vlans are involved. Both E62iUGS devices should be in vlan-aware mode (i.e. vlan-filtering=yes). So you will need both E62iUGS devices to each have an identically configured trunk port between each other. The "Office" E62iUGS is just an "extension" of the switch in the Main E62iUGS (that happens to have a "management host" configured and wifi bridged into the vlans).
2. you probably want the unused ethernet ports on the "Office" to be access ports for the GUEST vlan. That means that traffic on the attached "wire" will not have any [IEEE 802.1Q](https://en.wikipedia.org/wiki/IEEE_802.1Q) vlan tags. However the switch in the "Office" device "knows" that any untagged traffic it receives on the port should be associated with the GUEST vlan; this is done by setting the pvid on the bridge port. The link between the "Office" and the "Main router" will be a trunk link, and that will have vlan tags. (it is possible for one vlan on a trunk to be have an "implicit" vlan associated with it specified by pvid (this is what MikroTik calls a hybrid link, cisco calls it a trunk with a native vlan), but unless you have a specific need for that, I would use a pure trunk where all "used" vlans have tags.
3. I am not sure I understand the question. The GUEST vlan will need to be defined at the L2 level on both "Main" and "Office". But the only vlan interface on the "Office" device will be the one used for management (probably 10). There won't be vlan interfaces for the other vlans (20,30,40,50,60) on the "Office" U62iUGS. The tagged vs untagged is controlled on a vlan-aware switch on a port by port basis. So if you have a device that expects an [IEEE 802.1Q](https://en.wikipedia.org/wiki/IEEE_802.1Q) tag you can configure a specific port to use a tag for that vlan. Under normal conditions this would normally be only an a "trunk" port where there are multiple vlans being used, but you can create a port with a single tagged vlan (and block all untagged traffic).

This [post](https://forum.mikrotik.com/t/difficulty-communicating-between-vlans/273340/10) has some links you may find useful. I really like Ed Harmoush's stuff on his practical networking site. He focuses on "understanding" not cookbook recipes. (those are links #7 and #8) in the post.

I played a bit with the config generator to try to reproduce some of your config.

This is the saved site file edit updated to make ADMIN not isolated (only change: VLAN 10 unchecked "isolated", checked "Mgmt")

 ![image](https://data-discourse.cdn.mikrotik.com/original/3X/6/f/6f2062f9dd6e047040ddba8d052adcd4bbb12fd8.png)  
[bloodynetworker.site (3).json](https://forum.mikrotik.com/uploads/short-url/ksM09S9BkiT5SV0T60hzsPf612M.json) (4.7 KB)

To load it:

1. Start the config generator and select "start fresh".
2. Select mulitple device mode.
3. Scroll down until you see "Generate Scripts" and on the left side click open saved file.
4. Change to your needs. (the SSID passphases are just "generated" values, so it wouldn't complain, you will need to change them to your values. I wouldn't use the config, it is not like yours, but it is a "site" config, and good for learning.

Here's the hand over sheet it produced.  
[bloodynetworker\_handover(3).pdf](https://forum.mikrotik.com/uploads/short-url/amAeNd7SPvTYwfBmFqbfjEuLQ9c.pdf) (285.1 KB)
