So after trying to play with the subnet masks, interface parameter, change the metrics of the other routes etc, I gave up, removed the persistent routes and wrote a simple batch script wich adds the routes (non persistent) to the routing table on startup of the server.
Sometimes software name
is just being software name
.
So I created a .bat file with the 2 route ADD commands (without the -p parameter which would make them persistent). Saved that to C:\Windows\System32\GroupPolicy\Machine\Scripts\Startup
folder and added the .bat script to the startup scripts.
Contents of the .bat file are simply:
route ADD 10.32.1.40 MASK 255.255.255.255 172.16.8.254 route ADD 10.192.1.40 MASK 255.255.255.255 172.16.8.254
Thanks @harrymc for the suggestions. Bounty awarded!