Hi,
that's a good question
routing is a kernel level thing and therefore lives in
paged RAM along with a hash table that is the routing cache
some static routes may be picked up through files like
eth0.config or whatever (especially through the variable GATEWAY)
but mostly new routes have to be entered at the command line
and after you figure out what you want you put the command or commands
at the bottom of a boot script like
/etc/rc.d/init.d/rc
or even
/etc/inittab
(there is most likely some convention for your distro)
that's how i do it anyway
look at
man route
example if you wanted trafic to network 192.168.76.0 to go through eth1
route add -net 192.168.76.0 netmask 255.255.255.0 dev eth1
|