Hopefully the below will be usefull to allow you to add a feature to the system.
I am going to use my gentoo Distribution as a firewall. What I wanted to do is
have the gateway on eth1.
In the default scripts to bring up the eth devices in "/etc/init.d/ethx" it does
not allow you to specify which device to add the route to (info taken from
What I propose is that in the "/etc/conf.d/net.ethx" in the gateway section have
another variable "gatewaydev" where you set which device you would like to add
the route too.
Then in the "/etc/init.d/net.ethx" you change the route line to something like
"route add -net default gw $gateway netmask 0.0.0.0 metric 1 __ dev $gatewaydev __"
(Note Underline ( __ ) is my way of making the different part stand out).
Just thought that this would be usefull for anyone else who would like to add
routes on different devices.
Maybe "gateway="eth1/192.168.0.1"" optional syntax?
Fixed on CVS, thanks.