Routing between subnets without bridge

Hello.

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…

Could You please help me? Thank You.

Hello,

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.

Cheers

Sent from Tapatalk

Hello.

Where’s print of config:

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

DST-ADDRESS PREF-SRC GATEWAY DISTANCE

0 ADS 0.0.0.0/0 ... 1
1 ADC 10.1.1.0/24 10.1.1.254 bridge 0
2 ADC 10.10.1.0/24 10.10.1.254 WiFi 0

ip dhcp-server print
Flags: X - disabled, I - invalid

NAME INTERFACE RELAY ADDRESS-POOL LEASE-TIME ADD-ARP

0 defconf bridge pool_lan 1h
1 dhcp_wifi WiFi pool_wifi 15m

ip pool print

NAME RANGES

0 pool_lan 10.1.1.1-10.1.1.100
1 pool_wifi 10.10.1.1-10.10.1.100

ip address print
Flags: X - disabled, I - invalid, D - dynamic

ADDRESS NETWORK INTERFACE

0 10.1.1.254/24 10.1.1.0 bridge
1 10.10.1.254/24 10.10.1.0 WiFi

bridge port print
Flags: X - disabled, I - inactive, D - dynamic

INTERFACE BRIDGE PRIORITY PATH-COST HORIZON

0 ;;; defconf
ether2-master bridge 0x80 10 none
1 XI ;;; defconf
WiFi bridge 0x80 10 none

Best Regards.

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.

Sent from Tapatalk

Oh, by the way, when asked for your config, you should do:

Export hide-sensitive file=nameoffile

Regards,


Sent from Tapatalk