Josh Close <narshe@gmail.com> asks:
> Can anyone answer my other question then?
>
> How can I add a static route to /etc/conf.d/net?
Comments in the file:
# Specify routes as an array per interface, for example:
# routes_eth0=(
# "-net 10.1.0.0 netmask 255.255.0.0 gw 10.0.0.5"
# "-net 10.2.0.0 netmask 255.255.0.0 gw 10.0.0.6"
# "-host 10.3.0.1 dev eth0"
# )
#
# You can optionally use the gateway variable or just put the default route
# in the routes variable. The following two are REDUNDANT:
#
#
# routes_eth0=( "default gw 10.0.0.5" )
# gateway="eth0/10.0.0.5"
#
For consistency I like the first way to specify the default route.
For multiple network interfaces make /etc/init.d/net.eth1 a symlink to
net.eth0, and set up ifconfig_eth1, routes_eth1, etc.
--
Barry.Schwartz@acm.org
http://www.livejournal.com/users/chemoelectric/ "It struck me as I was speaking to people in Bangor, Maine, that
this president sees America as we think about a 10-year-old child."
-- Andrew Card
--
gentoo-user@gentoo.org mailing list