I am trying to route traffic through a specific gateway. On the commandline I can add the specific route using this ip
command:
ip r add 10.111.210.0/24 via 10.111.30.1
I am trying to replicate this using my system config:
networking.interfaces.ens18.ipv4.routes = [{
address = "10.111.210.0";
prefixLength = "24";
via = "10.111.30.1";
}];
but that does not seem to do anything at all.
Am I misunderstanding what this option does?