static routes

Today i was told to add some static route on a Linux server, something to do with vmware. anyway, so here i am adding a line to the file /etc/rc.local to add that route
route add -net 10.0.0.0/24 gw 192.168.1.1 eth0
now my manager says no, i want it to survive a network service restart not just a server restart
now that's something i never did, but turns out to be as simple as that

* create a new file called static-routes under /etc/sysconfig/

* add a line per route as follows

# - any net 10.0.0.0/24 gw 192.168.1.1 eth0

* /etc/init.d/network restart and tada it's done