Re: How To setup a static route whitout X?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dario Lesca wrote:

Hi, in which file they can be insert the static routes for a interface?

The file /etc/sysconfig/static-routes seem not work.

A quick look indicates that things have changed. 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
So routes that are not interface specific can still go in /etc/static-routes.

If you look at /etc/sysconfig/network-scripts/ifup-routes, the answers are there in bash language.

Alan





--
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux