Could You please tell me what should I do to enable connectivity between two LANs created at one MT? I want to have separate IP dhcp pool’s for WLAN and LAN so I had to disable interface WLAN from bridge (with WLAN enabled at bridge the dhcp server for WLAN was in INVALID state - founded solution was to disable interface from bridge).
The effect is that host from WLAN and LAN gets addresses from their separated pools but there is no connectivity beetweend networks (router ping’s everything). Of couse, while WLAN is enabled in bridge everythings works fine (host can reach reach other) but the they are in the same network…
You should export your config. It would be easier.
I’m guessing here, so…
Make sure wlan1 is deleted from the bridge, not just disabled. I’ve seen weird results with stuff being disabled.
Make sure wlan1 had an ip address from a distinct subnet
Create a dhcp-server assigned to wlan1
Test WiFi connectivity and dhcp
That should be about it. When on the same router, there’s nothing social to do to have both subnets communicate with each other. Make sure you have no firewall rules blocking traffic between subnets.
ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
You need one bridge per subnet
Assign the DHCP servers to the bridges (I think you did that)
Important: Add the Ports (interfaces) to the right bridge
In your print, both ETH and WLAN are ports of “bridge”, that can not work if you want two different DHCP servers
on ETH and on WLAN.
You should see there then 2 bridges, and add each port (LAN and WLAN) to the corresponding bridge
There’s no need to put wlan1 in a bridge as it is a standalone interface.
@OP, remove wlan1 from bridge. Like I said, I’ve seen bizarre results when stuff was disabled rather than deleted (may not be the case here but just in case). Otherwise, the print results look good.
Also, if you have master-slave setup, this means you have an old version of OS. I suggest you backup and export your config and then upgrade. You’ll need to add your other Ethernet ports to the bridge after the upgrade.