Dear Community !
Im currently struggling with VLAN in my lab (i am new to this) and i hope someone can point me in the right direction (I’ve read several posts on this topic and apparently cant figure out how it should work ![]()
Heres my current setup:
MT 2011 with port 5 & 6 bridged, where Ports SFP,1,2,3,4 are slave to eth5 and 7,8,9 are slave to eth6.
Eth 10 (which is my WAN Port). is set to “none” and has the internet modem attached to it.
A Win2012R2 DNS/DHCP/Domaincontroller is set up and attached to eth3, which dishes out DHCP for network 192.168.2.0/24 (works without problem). I do NOT want to use mikrotiks internal DHCP/DNS in this case.
An Access Point is attached to eth1 with a single SSID, works also OK and gets Ip from DHCP.
Now i want to set up a second SSID for Guest access and thats where VLAN comes into play and the trouble starts :
What im trying to achieve is the following:
“Internal” Clients should get IP from the 192.168.2/24 network, have access to all ressources, and be able to surf the net (which is what works).
Clients connected to the “guest” SSID should be directed to the mikrotik hotspot and be able to login there with username/pass.
I took the following steps so far:
I defined a second scope on the windows DHCP Server 192.168.20.10 - 192.168.20.20 which should be the IP range for VLAN20 (the guest network vlan ID).
I defined a second SSID on the AP an set to VLAN ID 20. Then i set the interface eth1 where the AP is connected to to “none” so that its not part of the lan-bridge anymore (which of course breaks internet access).
Next, i added a VLAN interface to physical eth1, labelled it VLAN20 and set the VLANID 20 for it.
Then, i set up an address for the VLAN20 interface of 192.168.20.1/24.
I then defined a DHCP relay for the VLAN20 interface and point this to 192.168.2.10 (which is my windows DCHP/DNS).
Now my Questions:
*) are my previous steps correct ? how to move on from there ?
*) i assume that i have to set up a firewall rule to pass traffic between the 192.168.2.0/24 and 192.168.20.0 networks?
*) what about the “untagged” traffic ?
I am aware that i am serously lacking some of the imortant basics here…could someone pls assist ?
Thanks and best regards
Andreas