Re: static routes after reboot

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

 



----- Original Message -----
From: "Alexander Dalloz" <alexander.dalloz@xxxxxxxxxxxxxxxx>
To: "For users of Fedora Core releases" <fedora-list@xxxxxxxxxx>
Sent: Friday, April 02, 2004 10:49 AM
Subject: Re: static routes after reboot


> [ second - I hate this mailman bug ]
>
> Am Fr, den 02.04.2004 schrieb Ben Halicki um 01:32:
>
> > I made a mistake when i typed out my static-routes... it actually
> appears as
> > follows:
> >
> > net 203.7.193.0 netmask 255.255.255.0 gw 203.4.205.10
> >
> > this line works on redhat 7.2, but not on fedora, which is very
> strange!  I
> > even tried your suggestion on fedora but couldn't get that to work
> either.
>
> Then you have a different problem.
>
> If you ran that by hand
>
> route add -net 203.7.193.0 netmask 255.255.255.0 gw 203.4.205.10
>
> does it produce the route then? If it does without problem then you have
> done something bad with your system. At least check the permissions for
> the static-route config files.
>
> Here is a link with more information:
>
> http://www.akadia.com/services/redhat_static_routes.html
>
> > Regards,
> >
> > Ben
>
> Alexander
>

yes running the route command by hand does install the correct routes.  I
had a look at the file /etc/init.d/network and it seems that it only looks
for entries in /etc/sysconfig/static-route that begin with the 'any'
keyword, which makes sense.  Formatting the line as follows would install
the correct routes after a reboot:

any -net 203.7.193.0 netmask 255.255.255.0 gw 203.4.205.0

Anyway, i ended up taking your advice and created the file
/etc/sysconfig/network-scripts/route-eth0 and added the route entries there,
which worked nicely.

Thankyou very much for your help.

Regards,

Ben.

>
> --
> Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
> Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2174.nptl
> Sirendipity 02:49:13 up 13 days, 10:31, load average: 0.31, 0.20, 0.14
>                    [ ÎÎÏÎÎ Ï'ÎÏÏÎÎ - gnothi seauton ]
>              my life is a planetarium - and you are the stars
>
>
>
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>



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

  Powered by Linux