Hi i was wondering if someone could guide help me with setting up a vlan on a routerboard 750up.
I am connecting Ubiquiti AP’s to Port’s 2 & 3. Both AP’s have 2 x SSID (Private & Guest WiFi). GuestWiFi is running as a hotspot.
I have tagged the AP’s SSID GuestWiFi to Vlan id: 10 and left Private as it is.
I think my problem is in my Mikrotik configuration , although i have been changing it all day in order to try and work out what i am doing wrong. Could someone have a look and suggest what’s wrong with the config.
If i connect to the Private SSID everything appears to be fine.
Thanks in advance.
/interface bridge
add name=Bridge-GuestWiFi
add l2mtu=1598 name=Bridge-Private
/interface bridge port
add bridge=Bridge-GuestWiFi
add bridge=Bridge-Private interface="LAN (VW)"
add bridge=Bridge-Private interface=WiFi
/interface ethernet
set [ find default-name=ether1 ] mac-address=4C:5E:0C:7F:10:06 name=\
"LAN (VW)"
set [ find default-name=ether2 ] mac-address=4C:5E:0C:7F:10:07 name=WiFi
set [ find default-name=ether3 ] mac-address=4C:5E:0C:7F:10:08 master-port=\
WiFi name=ether3-slave-local
set [ find default-name=ether4 ] mac-address=4C:5E:0C:7F:10:09 master-port=\
WiFi name=ether4-slave-local
set [ find default-name=ether5 ] mac-address=4C:5E:0C:7F:10:0A name=\
ether5-slave-local
/interface vlan
add interface=Bridge-GuestWiFi l2mtu=65531 name=VLAN10-GuestWiFi vlan-id=10
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
add name=hs-pool-2 ranges=\
192.168.8.1-192.168.10.0,192.168.10.2-192.168.11.254
add name=hs-pool-1 ranges=192.168.1.1-192.168.1.17,192.168.1.19-192.168.1.254
/ip dhcp-server
add address-pool=hs-pool-2 disabled=no interface=WiFi lease-time=10m name=\
default
add address-pool=hs-pool-1 disabled=no interface="LAN (VW)" lease-time=1h \
name=dhcp1
/ip dhcp-server network
add address=192.168.8.0/22 comment="hotspot network" dns-server=8.8.8.8 \
gateway=192.168.10.1
add address=192.168.88.0/24 comment="default configuration" dns-server=\
192.168.88.1 gateway=192.168.88.1
/interface bridge port
add bridge=Bridge-GuestWiFi
add bridge=Bridge-Private interface="LAN (VW)"
add bridge=Bridge-Private interface=WiFi
/ip address
add address=192.168.88.1/24 comment="default configuration" interface=WiFi \
network=192.168.88.0
add address=192.168.10.1/22 comment="hotspot network" interface=\
VLAN10-GuestWiFi network=192.168.8.0
/ip dhcp-server
add address-pool=hs-pool-2 disabled=no interface=WiFi lease-time=10m name=\
default
add address-pool=hs-pool-1 disabled=no interface="LAN (VW)" lease-time=1h \
name=dhcp1
/ip dhcp-server network
add address=192.168.8.0/22 comment="hotspot network" dns-server=8.8.8.8 \
gateway=192.168.10.1
add address=192.168.88.0/24 comment="default configuration" dns-server=\
192.168.88.1 gateway=192.168.88.1
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes to-addresses=0.0.0.0
add action=masquerade chain=srcnat comment="default configuration" \
out-interface="LAN (VW)"
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=192.168.8.0/22 to-addresses=0.0.0.0
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=192.168.1.0/24 to-addresses=0.0.0.0