hello every one , i have 2 routers an RB2011 and a HEX S , and i have 4 wifi access points and i connect them to the routers using UBNT RADIOS as follow

i have a bridge " LAN " on the HEX S and same in the RB2011
i connect both bridges and i connect the LAN bridge on the HEX S to the LITEBEAM AC , all devices can get IPs from the DHCP server on the RB2011
i added a VLAN 50 on the LAN BRIDGE ON THE HEX S , and i did configuer WIFI SSID with VLAN 50 , but clients access it , they dont have ip address from the DHCP server on the vlan 50 properly , they get DNS gate way from DHCP on the RB2011 and other info from the HEX S VLAN 50 DHCP server here is the code for the hex s :
/interface bridge
add name=LAN
/interface ethernet
set [ find default-name=ether5 ] poe-out=forced-on
/interface vlan
add interface=LAN loop-protect=on name=HOTSPOT vlan-id=50
/interface list
add name=WANs
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
add dns-name=www.wi-sat.net hotspot-address=172.16.50.1 html-directory=\
flash/hotspot login-by=https name=WI-SAT split-user-domain=yes \
ssl-certificate=WI-SAT use-radius=yes
/ip hotspot
add disabled=no idle-timeout=none interface=HOTSPOT name="WI-SAT HS" profile=\
WI-SAT
/ip pool
add name="HOTSPOT CLIENTS" ranges=172.16.0.200-172.16.50.50
/ip dhcp-server
add address-pool="HOTSPOT CLIENTS" disabled=no interface=HOTSPOT name=\
"WI-SAT HOTSPOT"
/interface bridge port
add bridge=LAN interface=ether5
add bridge=LAN interface=ether4
/interface bridge vlan
add bridge=LAN tagged=HOTSPOT untagged=LAN vlan-ids=50
/interface list member
add interface=ether1 list=WANs
add interface=ether3 list=WANs
add interface=ether2 list=WANs
/ip address
add address=192.168.5.10/24 interface=ether1 network=192.168.5.0
add address=172.16.50.1/24 interface=HOTSPOT network=172.16.50.0
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=LAN
/ip dhcp-server network
add address=172.16.50.0/24 dns-server=172.16.50.1 gateway=172.16.50.1 netmask=\
24
/ip dns
set allow-remote-requests=yes servers=8.8.8.8
/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
add action=masquerade chain=srcnat out-interface=!HOTSPOT src-address=\
172.16.50.0/24
/ip hotspot user
add name=xxxxx password=xxxxx
/radius
add address=192.168.5.5 secret=xxxxxx service=ppp,hotspot
/radius incoming
set accept=yes
no thing special is on the RB2011 except a bridge LAN and a DHCP server on that bridge
i dont know what exactly going on , i read the wiki and i read about usual/common mistakes done in that and i tries to avoid all , but sill doesnt work ![]()