I have a manjaro linux server with at least two network interface controllers (NICs) and would like to route all traffic going to certain IP address ranges or subnets over one, and everything else over one of the others.
So far I've configured the networks via nmcli
, but I only have a tenuous grasp of the subject.
Ideally the solution would work via the command line, be persistent and not depend strongly on the distribution used.
Edit: As per Route IP Traffic using nmcli / Centos 7 something along the lines of
nmcli connection modify "Wired connection 1" +ipv4.routes "10.0.0.0/16"
should work, however the packages don't seem to be routed across the correct network.