Hi
With migrating from 19.07.8 to 21.02.1 I have a problem with a static route.
I added a new routing table to /etc/iproute2/rt_tables:
root@home:/etc/config# cat /etc/iproute2/rt_tables
#
# reserved values
#
128 prelocal
255 local
254 main
253 default
0 unspec
#
# local
#
#1 inr.ruhep
210 210
I've set up routing as before in /etc/config/network:
config rule
option src '192.168.40.31/32'
option priority '210'
option lookup '210'
config rule6
option src 'fd42:0:0:40::31/128'
option priority '210'
option lookup '210'
config route
option target '0.0.0.0/0'
option gateway '192.168.34.71'
option table '210'
option source '192.168.40.31'
option interface 'wg1'
config route6
option interface 'wg1'
option target '0::/0'
option gateway 'fd42:0:0:34::71'
option table '210'
option source 'fd42:0:0:40::31'
The rules are existing:
root@home:/etc/config# ip rule
0: from all lookup local
210: from 192.168.40.31 lookup 210
32766: from all lookup main
32767: from all lookup default
root@home:/etc/config# ip -6 rule
0: from all lookup local
210: from fd42:0:0:40::31 lookup 210
32766: from all lookup main
...
Now: the IPv6 route is shown in the GUI and with ip -6 r:
root@home:/etc/config# ip -6 r
default from fd42:0:0:40::31 via fd42:0:0:34::71 dev wg1 metric 1024
...
But there is no entry for the IPv4 route.
What am I doing wrong?