static routes in (K) Ubuntu

nano /etc/network/if-up.d/if-up-ethX: (where ethX eth0,eth1,eth2,... — name of your network interface)

#!/bin/sh
ip r a 10.0.0.0/16 via 10.255.0.3
ip r a 10.0.0.90/32 via 10.255.0.2

 

chmod +x /etc/network/if-up.d/if-up-ethX

/etc/init.d/networking restart

and see ip r