Routes not taken into account

Hi,
I setup the following routes

config route
        option interface 'lan'
        option target '10.0.0.1/16'
        option gateway '192.168.1.63'
        option metric '10'
        option type 'local'
        option onlink '1'

config route
        option interface 'lan'
        option target '0.0.0.0/0'
        option gateway '192.168.1.61'
        option metric '15'

config route
        option interface 'lan'
        option target '0.0.0.0/0'
        option gateway '192.168.1.63'
        option metric '100'

However, the route to 10.x is not taken in the routing table
(10.0.0.1 is a second WAN box)

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.61    0.0.0.0         UG    15     0        0 br-lan
0.0.0.0         192.168.1.63    0.0.0.0         UG    100    0        0 br-lan
192.168.0.0     0.0.0.0         255.255.0.0     U     1      0        0 br-lan
#

What do I do wrong ?
Thank you

That is incorrect, a target network must be specified as the zero'th IP in its subnet, which is 10.0.0.0/16.

1 Like

Thanks

this finally works

config route
        option interface 'lan'
        option target '10.0.0.0/24'
        option gateway '192.168.1.63'
        option onlink '1'
        option table 'local'

config route
        option interface 'lan'
        option target '0.0.0.0/0'
        option gateway '192.168.1.61'
        option metric '1'
        option table 'default'
        option onlink '1'

config route
        option interface 'lan'
        option target '0.0.0.0/0'
        option gateway '192.168.1.63'
        option metric '100'
        option table 'default'
        option onlink '1'

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.