Tony Nugent wrote:

On Wed Nov 06 2002 at 13:37, "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.


That is exactly the place to put them.

Check /usr/share/doc/initscripts-*/sysconfig.txt and
/etc/sysconfig/network-scripts/ifup-routes for the exact format.


>Many Thanks


>Dario Lesca ([EMAIL PROTECTED])


Cheers
Tony



Are you sure?

That didn't work for me.  When I used the X tool it setup:

/etc/sysconfig/network-scripts/route-eth0  and
/etc/sysconfig/network-scripts/route-eth1

Which have entries like this:

192.168.161.0/24 via 10.54.2.254
10.64.1.0/24 via 10.54.2.254
10.66.1.0/24 via 10.54.2.252
10.66.2.0/24 via 10.54.2.252

That seems to work.

Looking at the networking scripts it seems that the old
/etc/sysconfig/static-routes script is now only used for aliases
and IP6...





Reply via email to