On 5/25/07, Fuhrmann Anna <[EMAIL PROTECTED]> wrote:
as there is no default file static-routes, I am not so happy by
creating one, even more so as I found this piece of documentation:
"With the introduction of Redhat version 8 and continued into version 9, the
/etc/sysconfig/static-routes file no longer seems to function correctly."
Two different beasts, from what I can tell. The ifup-routes appears to
be part of activating an interface, where the static routes are for
all interfaces. But I am looking at a slightly different level so
things may have changed. Redhat 9 is a bit old hat (no 00D intended).
My /etc/init.d/network has a snippet that says:
# Add non interface-specific static-routes.
if [ -f /etc/sysconfig/static-routes ]; then
grep "^any" /etc/sysconfig/static-routes | while read
ignore args ; do
/sbin/route add -$args
done
fi
[EMAIL PROTECTED] init.d]# cat /etc/sysconfig/static-routes
any net 10.0.0.0 netmask 255.255.255.0 gw 192.168.0.220
[EMAIL PROTECTED] init.d]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 192.168.0.220 255.255.255.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.206.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
Rob
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390