$ cat /etc/iproute2/rt_tables
#
# reserved values
#
255 local
254 main
253 default
0 unspec
#
# local
#
#1 inr.ruhep
Nevertheless, on my systems ipv4.routes "10.10.10.0/24 166.1.1.1" does go to main.
man nm-settingswrites:
ipv4.routes
A list of IPv4 destination addresses, prefix length, optional IPv4 next hop addresses, optional route metric, optional attribute. The valid syntax is: “ip[/prefix] [next-hop] [metric] [attribute=val]...[,ip[/prefix]...]”. For example “192.0.2.0/24 10.1.1.1 77, 198.51.100.0/24”.
Various attributes are supported:
…
“table” - an unsigned 32 bit integer. The default depends on ipv4.route-table.
Therefore ipv4.routes "10.10.10.0/24 166.1.1.1 table=254" should do the trick.
What is the value of ipv4.route-table?
On my system:
$ nmcli -f ipv4.route-table c s bridge-brlan
ipv4.route-table: 0 (unspec)