While I have dabbled in SoHo-Routing for quite some time, this is the first time I’m trying to use VLANs. Thanks for your patience if something shouldn’t be immediately clear to me. Having said that, I have done some extensive research before asking this question. I read through the various official documents in the Mikrotik Wiki, and I consulted several forum conversations on very similar topics. These conversations, however, were always cut short and no solution was presented, or at least not in any detail.
Here is how my network looks at the moment. I have one SoHo Router (Mikrotik RB4011, 10.2.0.1, dhcp router) that connects my LAN with network 10.2.0.0/23 to the internet (on ether1). One Mikrotik CSS106 Switch is connected to the router at ether9, one TP Link switch is connected to the Mikrotik Switch. Connected to the TP Link using PoE is a Mikrotik wAP in Wisp AP mode, getting IP dynamically.
All of this works perfectly fine. What I’m trying to achieve now is to offer guest wifi access through the wAP, without losing the possibility of accessing my LAN. In other words, I need two SIDs, one routing straight and without detour to the internet, the other connecting me to my LAN.
I understand that this is possible with VLAN and I understand the general theory behind it but I’m truly lost at how to configure this. I’ll tell you what I have so far and maybe someone will be willing to show me the rest.
- I created a new VLAN on the local bridge interface with the name “guest-vlan” and the VLAN ID 3.
- I added a new IP address 192.168.6.1/24, attached to the interface “guest-vlan”
- I registered a new dhcp server on interface guest-vlan, with the address pool offering IPs from the range 192.168.6.10-100.
That’s all I have on my router so far. I’m particularly not clear if and why I’d need VLAN bridge filtering. I’m also not clear if it is even possible to just add one new, special purpose VLAN without changing anything else.
Now, I understand that even if my configuration so far is correct, that’s just one side of the coin, I need to do the same on my wAP.
- I created a new VLAN on the local bridge (comprising eth1, wlan1, wlan2) called “guest-vlan” with vlan ID 3
- I created a new security profile for the guest WiFi, called “guestprofile”
- I created a new virtual AP named “guest-wlan”, in ap bridge mode, using “guestprofile”, with VLAN mode “use tag” and VLAN ID “3”
Clearly, this is not yet sufficient. I can connect to guest-wlan and my password is accepted, but I don’t have any network access.
Here is one of the (many) things I’m not clear on: Do I have to configure anything on the two switches between the wAP and the router? I would have assumed that if nothing is set, they will not discriminate if a packet has VLAN or not and only the final recipient, i.e. the router or the wAP will actually care about this.
Mind you, at this point of this experiment, it’s really not about additional security VLAN can give for my network in general. I understand that this is one of the main motivations for VLAN and I will do a lot more research and testing on this. At this moment, I really just wish to segregate guest users entirely.
Your help is much appreciated.
Vic