Hmm, well can you show us what you have in the file?

I haven't had a need to use /etc/sysconfig/static-routes in
a while, but I checked my /etc/rc.d/init.d/network script to
see how it uses the content of "static-routes" file:

           # 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

So it looks like the static-routes file has the format of
a line beginning (with no spaces) either the name of the interface "eth0" or "eth1" for example,
or "any" and then some whitespace followed by all the arguments and options that
would normally follow the command "route" if it were used on the command line.






Gary Applin wrote:

Ben,

No I did not. I did however, reboot the box.

Gary

----- Original Message ----- From: "Ben Russo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 11:00 AM
Subject: Re: Static Routes in Redhat 8.0





Gary Applin wrote:



Can someone point me to info on static routes in RedHat 8.0? I have tried to enter them in the /etc/sysconfig/static-routes using the systax from RH 7X. This does not seem to work. They do not show up with a netstat -nr. Any help would be appreciated.


after adding the static-routes to the /etc/sysconfig/static-routes did you run "service network reload" ?

-Ben.







-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to