Static routes file

Alexander Dalloz ad+lists at uni-x.org
Sat Jan 15 17:47:26 UTC 2005


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 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20050115/a60f12d3/attachment-0002.bin 


More information about the users mailing list