Hi!
I’ve been researching in forums + youtube how to create vlans using unifi APs and mikrotik router and they are all different approaches. Tried mostly all of them without success.
I currently have a mikrotik router hAP ac with QCA 8337 switch chip and a non managed layer 2 tplink (regular) switch where all the wired computers are connected and also, the 5 unifi APs.
internet ↔ router ↔ tplink switch ↔ unifi APs
My goal is to have 2 wireless vlans using unifi mesh access points.
networks:
192.168.81.x administration (no vlan here - wired and wireless. default dhcp server)
192.168.200.x wireless security cameras (vlan 200)
192.168.250.x wireless guest access (vlan 250. need dhcp server here)
right now, the router is connected in this way:
ether1 = wan
ether2 = connected to the tplink switch
ether3 = nothing
ether4 = nothing
ether5 = DVR (in order to connect the wireless cameras)
router configuration so far (empty of course)
# aug/14/2018 12:31:35 by RouterOS 6.42.5
# software id = RDPG-VAHY
#
# model = RouterBOARD 962UiGS-5HacT2HnT
# serial number = 8308072CEA76
/interface bridge
add admin-mac=64:D1:54:B8:C5:E8 auto-mac=no comment=defconf name=bridge protocol-mode=none
/interface ethernet
set [ find default-name=ether1 ] name=ether1-wan
set [ find default-name=ether2 ] name=ether2-lan
set [ find default-name=ether5 ] name=ether5-dvr
/interface vlan
add interface=wlan1 name=vlan200-cameras vlan-id=200
/ip pool
add name=pool-default ranges=192.168.81.102-192.168.81.249
/ip dhcp-server
add address-pool=pool-default disabled=no interface=bridge name=dhcp-default
/interface bridge port
add bridge=bridge comment=defconf interface=ether2-lan
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=sfp1
add bridge=bridge interface=ether4
add bridge=bridge interface=ether5-dvr pvid=200
set bridge=bridge discovery-interfaces=bridge enabled=yes interfaces=wlan1,wlan2
/ip address
add address=192.168.81.1/24 interface=bridge network=192.168.81.0
add address=192.168.200.254/24 interface=vlan200-cameras network=192.168.200.0
/ip dhcp-server network
add address=192.168.81.0/24 gateway=192.168.81.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1-wan
is it possible to achieve it?
thanks in advance!