OK so you have your nice new box and you want to configure static routes. As far as I can tell many systems leave you to write your own scripts, or SuSE forgets to let you add metrics to the config file, or they use something convoluted like linuxconf. Anyway I have a nice simple script and config file for static routes. It is written for debian GNU/Linux, but feel free to modify it for your needs.


Since people come to this page multiple times a day. I will note that currently in Debian the correct way to add a static route is in /etc/network/interfaces as an up command.

auto eth0
iface eth0 inet static
	up "/sbin/route add -net netmask gw metric 1"
	down "/sbin/route del -net netmask gw metric 1"
other random stuff usefull for people using linux can be found here.