The shell code from /etc/init.d/network
# 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
It only wants lines that begin with "any".
Apparently the file syntax has changed between your version to version 8.
Rick
-----Original Message-----
From: Toshi Esumi [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 6:46 PM
To: '[EMAIL PROTECTED]'
Subject: static-routes with RH8.0
Does someone have the same experience with RH8.0? I put a static router
statement in /etc/sysconfig/static-routes file as I did with RH7.0. But it
doesn't seem to work when I reboot the PC. It takes the same static route
when I put it manualy using "route" command when it's running. The route I
wanted to put is ....
<routing table:before>
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
63.214.2.224 * 255.255.255.240 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 63.214.2.225 0.0.0.0 UG 0 0 0 eth0
<adding a route:manually>
route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252
<after>
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.0.254.248 63.214.2.234 255.255.255.252 UG 0 0 0 eth0
63.214.2.224 * 255.255.255.240 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 63.214.2.225 0.0.0.0 UG 0 0 0 eth0
</etc/sysconfig/static-routes>
eth0 net 10.0.254.248 netmask 255.255.255.252 gw 63.214.2.234
....This didn't work when
I rebooted.
Toshi
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list