Hi!
On my RUTX50 I have WIFI STA on lan connected to another (main) AP and getting IP using relayd, the lan has static 192.168.1.2 address is bridged to eth0. In case there is no main AP, I want to access the router with AP and get IP from 192.168.2.1. I have created lan1 on 192.168.2.1, enabled DHCP in 2.0 subent and did not bridge it to any interface. I just want to route 192.168.2.0 and 192.168.1.0 traffic, so that I can have access to devices on 1.0 subnet when I connect to AP on 2.0 subnet.
Now I can connect to AP and I get IP from 2.0 subnet, but can’t ping 1.0 subnet, even the 192.168.1.2 interface.
ip routes:
192.168.1.0/24 dev br-lan proto static scope link src 192.168.1.2 metric 1
192.168.2.0/24 dev br-ifLan1 proto static scope link src 192.168.2.1 metric 10
I tried to add static routes, but that really doesn’t change anything:
192.168.1.0/24 via 192.168.1.2 dev br-lan proto static metric 1
192.168.2.0/24 via 192.168.2.1 dev br-ifLan1 proto static metric 10
I don’t want to attach AP to lan, since there is no DHCP if the main router is off. Lan and lan1 are in the same firewall zone, so there should be no issue with blocked traffic…
the metric 10 is just to make sure devices on 1.0 will use its route if it is connected.
How can I achieve this routing?
thanks