I ran into a bit of a problems enabling the VLAN filtering so it made sense to add an extra step just to get that working and then contine with extending and moving the exiting network VLANs across to the Mikrotik router.
Confguring ether8 as a dedicated console port during Preparing the Mikrotik RB5009 router for phased cutover turned out to be a really good move as I ran into a slight problem while enabling the Hall VLAN. This prompted a bit of a rethink as to how I control access to the WinBox service so before going any further it's probably better to apply this now and head off any problems you may run into later.
Setting up VLANs is quite easy, if a little weird as some need to be done twice, but there is a subtle catch in that initially there's no separation between the VLANs. You need to explicity enable VLAN filtering and if you've done everything right then it just works. If not, you can can find yourself locked out and potentially without any way back in. Just to make it really interesting, it doesn't always go wrong immediately either. so you can think you've done everything right, ony to find out the following evening that you goofed somewhere and it doesn't like you any more.
To try an prevent issues, WinBox has a Safe Mode option in the top-right corner of the screen. In theory this should make it impossible to goof as a loss of connection to WinBox means the configuration should be automatically backed out. In practice I found that enabling safemode before activating the VLAN Filtering meant WinBox lost its connection while the bridge resets and the change was immediately backed out. Hopefully this gets fixed in a future release.
The key points are:
- The WinBox service uses the LAN interface list by default list to control access.
- Both bridge and interface VLAN config is required for the WinBox service
- Enabling the VLAN filtering always fails when using safemode.
Current State
The Mikrotik router has the intiial configuration completed (well, kind-of) and is connected to the internet with the old router also connected as a downstream device with the rest of the LANs. Traffic is flowing and no issues are being reported by anyone.
Desired State
Since I had a few is
sues setting up the Hall VLAN, this session is going to be target on just getting the WinBox managment working properly and getting VLAN filtering activated. It made sense to start with the House VLAN since that is most of the work of having the Mikrotik trunk the the House and Guest VLANs to the Wifi repeater which is future goal once the Draytek is decomissioned.
- WinBbox service reconfigured to be managed explicity rather than using the LAN list
- A shadow House VLAN created on the Mikrotik for easy WinBox admin
- VLAN Filtering active
Internet access will still be routed via the Draytek and then the Mikrotik.
Reconfigure the WinBox Service
The WinBox configuration tool connects to the router using an IP address, which is subject to firewall rules, or on a directly attached port which is a member of a an approved interface list. In both cases the LAN interface list will grant access. Which is Ok for the the default configuration, but I don't want every LAN interface to enable admin access to the router and new VLANs won't be members of any interface initially so by default they'll not be usable for managment.
During the preparation phase I created an explicit firewall to accept all input on ether8, which is reserved as a console port and will allow WinBox and Webfig connections on there via IP. To enable WinBox to connect directly using MAC, the first step is to create a new interface list dedicated for this.
Go to Interfaces > Interface List > Configuration : Lists and then pick New
| Parameter | Value |
| Comment | Permit WinBox |
| Name | Mgmt |
As a safety to prevent lockout phase you could use the Include option to include all the members of the LAN interface list, or even the "all" list just to prevent accidental lockout.
Click OK then close the Interface Lists dialog and return to the Interfaces > Interface Lists page. We now need to assign the newly created list to some interfaces s click New.

| Parameter | Values for Ether8 | Values for Ether2 | Values for House VLAN |
| Comment | Console management | Temp | House management |
| List | Mgmt | Mgmt | Mgmt |
| Interface | ether8 | ether2 | V200-House |
You need to individually assign each interface to to the list. Create the entries for ether8 and ether2 now. We've not created V200-House yet but we will need to do that before activating VLAN filtering.
The final step is to reconfigure the WinBox service to permit acces based on our new Mgmt list. You may wish to have something connected to the ether8 and connected to Webfig with during this, just in case something interesting happens.
Go to Tools > MAC Server : MAC WinBox Server and change the Allowed Interface List from LAN to Mgmt. As we're already connected to the Mikrotik on ether2 this should just work. I know, famous last words...
Just to be sure it's worked, exit from WinBox and reconnect - much better to fix any issues at this point before you go any futher.
Create first VLAN
My original intention was to create the "Hall" VLAN first. This is the one I use as backbone network for the GeekLab which all the individual lab networks connecting to it. If you think of each of them as a room with the doorway between them being an internal router it makes it easier to visualise. Unlike real life I can quickly set up new rooms and tear them down as needed although this hasn't turned out to be something I've needed to do that often.
The main "House" network has a connection to the Mikrotek purely for WinBox, I don't want to route directly as I want that to pass though an internal router to the Hall. This is long-standing design, partly to avoid dependence on a single hardware device (the old Draytek router) that wasn't as flexible as I needed and also to give a bit of logical separation.
I also use as separate VLAN switch to connect the main house network and a separate Guest network to a Wifi bride. It means a bit of a convoluted path from Wifi to internet for guest users, including two passes through the VLAN switch which is not optimal but we're well within the capabilities so it's not an issue. One of the later configuration steps is will be to do this VLAN switching on the Mikrotik router intead, which will mean I need to create a House VLAN, so we might as well do this first and fix the WinBox permissions at the same time.
Bridge VLAN
As this is a bridge we're talking ISO layer 2 of the networking model, and we're also talking Ethernet frame insetead of IP packets. All the VLANs I need to create for moving off the Draytek will be tagged VLANs using the IEEE 802.1Q standard. This uses an extension to the Ethernet frame to add the tags, which are a number between 2 and 4094 so we're not exactly short of identifiers to use at GeekLab scale. For historical reasons I chose VLAN 200 for the House network so my first step is to create that on the Mikrotik.
Go to Bridge > VLANs and click New to create the new VLAN

| Parameter | Value |
| Comment | House |
| Bridge | bridge |
| VLAN IDs | 200 |
| Tagged | bridge |
| Untagged | ether2 |
This configuration well send ethernet frames tagged as VLAN 200 to the bridge interface with their tags intact, it will also forward those frames to ether2, whch is my House network, but with the VLAN tags removed.
This is good for ethernet frames heading out to the physical House network, but we also need to handle inbound ethernet frames destined for our router. We need to specifiy these should go to VLAN 200 and we do that by setting a PVID on the ether2 port.
Go to Bridge > Ports and double-click on the entry for ether2 and select the VLAN tab

| Tab | Parameter | Value |
| VLAN | PVID | 200 |
| Frme Types | Admit only untagged and priority tagged |
Mikrotik also allows you to set filters to only allow untagged frames any frames to enter the port. If really want you can even all already tagged frames and add the 200 tag to them, but that's going a bit too for for our needs. Leave all other parameters unchanged and click OK.
We've now defined an ethernet VLAN that doesn't care about whatever protocol is inside the frame payload. Or at leaast it will do when we enable VLAN filtering later.
Interface VLAN
For simple VLAN tagging just configuring on the bridge is sufficient. But we also want to enable WinBox to communicate with the router itself so we also need to define the same VLAN on the interface configuration too.
Go to Interfaces > VLAN : New
| Tab | Parameter | Value |
| General | Name | V200-House |
| VLAN ID | 200 | |
| Interface | Bridge |
Click on OK and with the V200-House interface defined we must return to Interfaces > Interface Lists and add it to the Mgmt list so WinBox can connect to the router WInBox service.
Enable VLAN Filtering
So far we've defined a single VLAN using tag 200 but this is being ignored by the bridge. We need to enable VLAN Filtering to make this take effect. The fun part is, if we've got it wrong we'll lose access to Mikrotik through WinBox on the ether2 interface. The other interfaces we've not yet configured will still work, as will our console port ether8.
Go to Bridge > Bridge and double-click the entry for bridge.
| Tab | Parameter | Value |
| VLAN | VLAN Filtering | Tick |
| PVID | 200 |
Accept the defaults for EtherType (0x8100) and Frame Tpes (admit all). The PVID needs to match the VLAN we've just create too. Click OK and WinBox will lose the connection, but if all goes well it will reconnect in about 10 seconds. Unfortunately if you enable safemode for this step it will always fail and VLAN Filtering will not be activated. If you don't select safemode and you've got it wrong, it'll still fail. Do you feel lucky?
Once WinBox reconnects to the router it's worth taking another config backup just in case you need to revert later.
If it doesn't work, either connect to one of the remaining ports we've not yet touched - ether3 to ether7 and back into the VLAN tab for the Bridge interface and deselect VLAN Filtering and click OK. It will disconnect again, but when it returns you'll be able to use ether2. Then you need to re-examine your config and fix the error.
Tidy up
At this point I added a comment of "House LAN" to Interfaces > Interface : ether2 just as a reference to what's plugged in there. If you added the LAN or all lists to the Mgmt Interface List now would be a good time to go back and rermove them. If you've got ether2 in the Mgmt List then condsider removing it althought it shouldn't cause any harm if it remains.
Summary
So we've now got our first VLAN configured, although not the one I originally intended. The House VLAN will be needed later on so we've not wasted this effort.
The next step will be to extend the Hall VLAN to the Mikrotik and start routing outbound traffic directly.