Due to mtk_soc_eth issues that would cause crash with my D-Link DIR-860L B1, I switched to using RPi 4B as router, and an old TP-Link Archer C7 v2 as WiFi AP, based on the OpenWRT – How to create a public network without using the wan interface
Now the WiFi is working after applying the static route by adding the following lines to /etc/config/network:
config route 'AccessPoint1'
option interface 'lan'
option target '172.10.3.0'
option netmask '255.255.255.0'
option gateway '192.168.1.2'
config route 'AccessPoint2'
option interface 'lan'
option target '172.10.4.0'
option netmask '255.255.255.0'
option gateway '192.168.1.2'
with '192.168.1.2' as the ip of the Archer C7 v2 in the router's lan.
While command 'ip route show' gives:
root@OpenWrt:~# ip route show
default via xxx.xxx.xx.1 dev eth1 src xxx.xxx.xx.xxx
xxx.xxx.xx.0/20 dev eth1 scope link src xxx.xxx.xx.xxx
172.10.3.0/24 via 192.168.1.2 dev br-lan
172.10.4.0/24 via 192.168.1.2 dev br-lan
192.168.1.0/24 dev br-lan scope link src 192.168.1.1
However, the 'ip -6 route' command get an unreachable item as follow:
fdbb:54ac:343f::/64 dev br-lan metric 1024
unreachable fdbb:54ac:343f::/48 dev lo metric 2147483647
fe80::/64 dev eth1 metric 256
fe80::/64 dev br-lan metric 256
anycast fdbb:54ac:343f:: dev br-lan metric 0
anycast fe80:: dev eth1 metric 0
anycast fe80:: dev br-lan metric 0
ff00::/8 dev br-lan metric 256
ff00::/8 dev eth1 metric 256
in which there's an unreachable item.
Is there anything wrong with my setup?