hang on , I'm talking SHITE
the file for static routing is in:
/etc/sysconfig/network-scripts/route-<interface>
where <interface> is your net physical device, e.g. eth0 , so
/etc/sysconfig/network-scripts/route-eth0
a sample static route where:
a) default gateway is 192.168.0.1 via interface eth0
and
b) static route for 10.10.10.0/24 subnet via the default gateway
would look like
Code:
default 192.168.0.1 dev eth0
10.10.10.0/24 via 192.168.0.1 dev eth0
( you may have to restart networking , i.e. /etc/init.d/network restart )
Warning! If you use the Network Manager GUI then it *may* overwrite the above, thats why I suggested rc.local
To run any of the startup scripts just "use" it , i.e. issue the command
/etc/init.d/rc.local to run rc.local without rebooting) !!! Easy