On Sat, 2003-01-18 at 00:24, Ted Gervais wrote:
> On Friday 17 January 2003 07:46 pm, Toshi Esumi wrote:
> I seem to have the same problem.
>
> My /etc/sysconfig/static-routes file has 4 lines of routes in it but none of
> them show up when I run 'route -n '.
>
> I need to enter them manually for them to 'take' or show.
>
> Anyone have any ideas as to why this is happening, or at least how to get the
> routes to be installed when I reboot the machine??
>
I have looked at adding static routes for a couple of our servers. With
RH8 it seems that 'static-routes' is looked at by /etc/init.d/network.
But it only seems to be used for non interface-specific routes. As the
code shows:
# 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
If the line in the file begins with the word 'any' then the rest of the
line is passed to 'route add -'. From what you've said I assume this is
different from what it was in RH7.
In our case I have had to manually add the static routes - which are
interface-specific because we have multihomed servers - directly into
the /etc/init.d/network file. Not ideal but it vaguely works for now.
John.
--
------------------------------------------------------------------------
John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914
E-mail: [EMAIL PROTECTED]
PGP key available from public key servers
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list