2 Wireless LANs and 2 DHCP Server

Good day
I have the MikroTik RB2011UAS-2HnD-IN with RouterOS 6.1. I am very new to RouterOS.

I have a problem with DHCP address assignments. If you look at the section in red below, that is what causes the problem. When I change that to bridge-local then my router correctly assigns IP addresses from the 192.168.88.0/24 range to both Wireless LANS. I would like my router to assign IP addresses from the 192.168.6.0/24 range when users connect to wlan 2, and IP addresses from the 192.168.88.0/24 range when users connect to wlan 1. I will appreciate your assistance.

I have the following setup:
Wlan 1 - AP Bridge
Wlan 2 - virtual AP (with Wlan 1 as the master)

DHCP Server 1: 192.168.88.100 to 192.168.88.150 (interface: wlan 1)
DHCP Server 2: 192.168.6.100 to 192.168.88.150 (interface: wlan 2)

Addresses: 192.168.88.1/24 and 192.168.6.1/24

Wlan1 and wlan3 are both ports on the bridge

Routing set up for these addresses.

Pools set up for the DHCP servers.

Thank you

Post /export compact so we can see what exactly you have.

Good day

Thank you for your reply. I did an export compact. Here are the results (I just masked out my wifi passwords with XXXX and YYYY):

jul/06/2013 11:22:34 by RouterOS 6.1

software id = QMGV-7Q4R

/interface bridge
add admin-mac=D4:CA:6D:71:83:6B auto-mac=no l2mtu=2290 name=bridge-local protocol-mode=rstp
/interface wireless
set 0 band=2ghz-b/g/n disabled=no distance=indoors ht-rxchains=0,1 ht-txchains=0,1 l2mtu=2290 mode=
ap-bridge ssid=san1 wireless-protocol=802.11
/interface ethernet
set 0 name=ether1-gateway
set 5 name=ether6-master-local
set 6 master-port=ether6-master-local name=ether7-slave-local
set 7 master-port=ether6-master-local name=ether8-slave-local
set 8 master-port=ether6-master-local name=ether9-slave-local
set 9 master-port=ether6-master-local name=ether10-slave-local
set 10 name=sfp1-gateway
/ip neighbor discovery
set ether1-gateway discover=no
set sfp1-gateway discover=no
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk mode=dynamic-keys wpa-pre-shared-key=XXXXXXXX
wpa2-pre-shared-key=XXXXXXX
add authentication-types=wpa2-psk management-protection=allowed mode=dynamic-keys name=profile1
wpa-pre-shared-key=YYYYYYYY wpa2-pre-shared-key=YYYYYYYY
/interface wireless
add disabled=no l2mtu=2290 mac-address=D6:CA:6D:71:83:75 master-interface=wlan1 name=wlan3
security-profile=profile1 ssid=san2_subnet wds-default-bridge=bridge-local
/ip hotspot user profile
set [ find default=yes ] idle-timeout=none keepalive-timeout=2m mac-cookie-timeout=3d
/ip pool
add name=dhcp ranges=192.168.88.100-192.168.88.150
add name=dhcp_pool1 ranges=192.168.88.50-192.168.88.100
add name=pooltommy ranges=192.168.6.100-192.168.6.150
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge-local name=default
add address-pool=pooltommy disabled=no interface=wlan3 name=dhcp1
/port
set 0 name=serial0
/interface bridge port
add bridge=bridge-local interface=ether2
add bridge=bridge-local interface=ether3
add bridge=bridge-local interface=ether4
add bridge=bridge-local interface=ether5
add bridge=bridge-local interface=ether6-master-local
add bridge=bridge-local interface=wlan1
add bridge=bridge-local interface=wlan3
/ip address
add address=192.168.88.1/24 comment=“default configuration” interface=wlan1 network=192.168.88.0
add address=192.168.6.1/24 interface=wlan3 network=192.168.6.0
/ip dhcp-client
add comment=“default configuration” dhcp-options=hostname,clientid disabled=no interface=sfp1-gateway
add comment=“default configuration” dhcp-options=hostname,clientid disabled=no interface=ether1-gateway
/ip dhcp-server lease
add address=192.168.88.146 client-id=1:28:d:fc:15:1a:47 mac-address=28:0D:FC:15:1A:47 server=default
add address=192.168.88.148 mac-address=1C:65:9D:33:66:9D server=default
/ip dhcp-server network
add address=192.168.6.0/24 dns-server=192.168.88.1 gateway=192.168.6.1
add address=192.168.88.0/24 comment=“default configuration” dns-server=192.168.88.1 gateway=192.168.88.1
netmask=24
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add chain=input comment=“default configuration” protocol=icmp
add chain=input comment=“default configuration” connection-state=established
add chain=input comment=“default configuration” connection-state=related
add action=drop chain=input comment=“default configuration” in-interface=sfp1-gateway
add action=drop chain=input comment=“default configuration” in-interface=ether1-gateway
add chain=forward comment=“default configuration” connection-state=established
add chain=forward comment=“default configuration” connection-state=related
add action=drop chain=forward comment=“default configuration” connection-state=invalid
/ip firewall nat
add action=masquerade chain=srcnat comment=“default configuration” out-interface=sfp1-gateway
add action=masquerade chain=srcnat comment=“default configuration” out-interface=ether1-gateway
to-addresses=0.0.0.0
/lcd
set current-interface=wlan1
/system clock manual
set time-zone=+02:00
/system ntp client
set enabled=yes mode=unicast primary-ntp=146.64.24.58
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=ether2
add interface=ether3
add interface=ether4
add interface=ether5
add interface=ether6-master-local
add interface=ether7-slave-local
add interface=ether8-slave-local
add interface=ether9-slave-local
add interface=wlan1
add interface=bridge-local
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether2
add interface=ether3
add interface=ether4
add interface=ether5
add interface=ether6-master-local
add interface=ether7-slave-local
add interface=ether8-slave-local
add interface=ether9-slave-local
add interface=wlan1
add interface=bridge-local

Please let me know if you need any more information.

Thank you

You need to remove wlan3 from the bridge. It looks like your already have and IP on wlan3 and the DHCP server setup for wlan3.

Thank you! It all works 100% now. I removed wlan3 from the bridge and now wlan3 assigns IP addresses from the 192.168.6.1/24 range.
Thank you for you help and quick replies. Now I can learn some other things, like setting up VPN and routing.