Hello!
Docs are saying (https://openwrt.org/docs/guide-user/network/routing/routes_configuration) that openwrt support static routes, adding a line to /etc/config/network:
config route 'route4'
option interface 'lan4'
option target '0.0.0.0/0'
option table '100'
option gateway '10.72.197.110'
Would be equivalent to ip route add default via 10.72.197.110 table 100
. So I did, reboot the router. But following line showing nothing, like table is not created:
ip route list table 100
I'm trying to create static route for each of my external IP. I have wan1 and wan2. All packets come to my lan1 should use wan1 external ip. All packets using lan2 should use my wan2. (They are called lan/wan and lan4/wan4)
I could use pbr but it it slow and memory consuming. I prefer static routes based on interface packet received by: lan or lan4, or based on ip subnet mask if simple interface matching is not possible.
But right now docs seems are incorrect.