Re: Static routes file

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

 



Am Sa, den 15.01.2005 schrieb Thomas E. Dukes um 18:14:

> Its contents are:
> 
> eth1 net 10.0.0.1 netmask 255.255.255.0 gw

Besides what I already answered in my other reply, the syntax is wrong.
If for some reason you need a static route - device independent! - then
use /etc/sysconfig/static-routes. The /etc/init.d/network script will
then read those lines starting with "any".

        # 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

Your line above even misses the gateway address behind the "gw"
parameter.

For setting up device specific static routes you will have to use
/etc/sysconfig/network-scripts/route-eth1 for instance.

See

https://www.redhat.com/archives/fedora-list/2004-April/msg00181.html

for earlier discussion of that here on the list.

Alexander


-- 
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.10-1.9_FC2smp 
Serendipity 18:41:27 up 1 day, 2:03, load average: 0.13, 0.13, 0.12 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux