Hi,
I have here an OpenWrt 22.03.3 r20028-43d71ad93e ArcherA7
i have set some static routes, but only some are added to the routing table.
my /etc/config network contains these routes.
config route
option interface 'vwrtx'
option target '192.168.5.64/27'
option gateway '192.168.8.26'config route
option target '192.168.6.96/28'
option interface 'vwrtx'
option gateway '192.168.8.26'config route
option target '192.168.6.112/28'
option interface 'vwrtx'
option gateway '192.168.8.26'config route
option interface 'vwrtx'
option target '192.168.6.144/28'
option gateway '192.168.8.26'config route
option interface 'vwrtx'
option target '192.168.8.32/29'
option gateway '192.168.8.27'config route 'aptold'
option interface 'vwrtx'
option target '192.168.9.12/30'
option gateway '192.168.8.27'config route 'pihole'
option interface 'vwrtx'
option target '192.168.9.16/30'
option gateway '192.168.8.27'config route 'sshbackup'
option interface 'vwrtx'
option target '192.168.9.20/30'
option gateway '192.168.6.27'config route 'apt'
option interface 'vwrtx'
option target '192.168.9.24'
option netmask '255.255.255.252'
option gateway '192.168.6.28'
after
root@archer:~# /etc/init.d/network restart
root@archer:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default nnn.d 0.0.0.0 UG 0 0 0 eth0.2
nnn.nnn.nnn.0 * 255.255.255.0 U 0 0 0 eth0.2
192.168.5.64 vwrt1.cave. 255.255.255.224 UG 0 0 0 eth0.15
192.168.6.32 * 255.255.255.240 U 0 0 0 eth0.10
192.168.6.96 vwrt1.cave. 255.255.255.240 UG 0 0 0 eth0.15
192.168.6.112 vwrt1.cave. 255.255.255.240 UG 0 0 0 eth0.15
192.168.6.144 vwrt1.cave. 255.255.255.240 UG 0 0 0 eth0.15
192.168.8.24 * 255.255.255.248 U 0 0 0 eth0.15
192.168.8.32 vwrt2.cave. 255.255.255.248 UG 0 0 0 eth0.15
192.168.9.12 vwrt2.cave. 255.255.255.252 UG 0 0 0 eth0.15
192.168.9.16 vwrt2.cave. 255.255.255.252 UG 0 0 0 eth0.15
192.168.100.0 * 255.255.255.0 U 0 0 0 br-lan
Why is the route to 192.168.9.12/30 192.168.9.16/30 present in the routing table?
But 192.168.9.20/30 and 192.168.9.24/30 do not?
root@archer:~# uci show network
...
...
...
network.aptold=route
network.aptold.interface='vwrtx'
network.aptold.target='192.168.9.12/30'
network.aptold.gateway='192.168.8.27'
network.pihole=route
network.pihole.interface='vwrtx'
network.pihole.target='192.168.9.16/30'
network.pihole.gateway='192.168.8.27'
network.sshbackup=route
network.sshbackup.interface='vwrtx'
network.sshbackup.target='192.168.9.20/30'
network.sshbackup.gateway='192.168.6.27'
network.apt=route
network.apt.interface='vwrtx'
network.apt.target='192.168.9.24'
network.apt.netmask='255.255.255.252'
network.apt.gateway='192.168.6.28'
Network Routing Settings in the Gui
Also in the GUI i see only the same routes active. But missing the others.
i have also tried multiple kinds of settings.
config route 'apt'
option interface 'vwrtx'
option target '192.168.9.24'
option netmask '255.255.255.252'
option gateway '192.168.6.28'
config route
option interface 'vwrtx'
option target '192.168.9.24/30'
option gateway '192.168.6.28'
Skipped the route name or used /30 instead of netmask.
Where is a log which i could check why it is failing?
Where is my error/mistake in the config/network file?