set a persistent route
Paul Howarth
paul at city-fan.org
Mon Jun 19 10:01:57 UTC 2006
Guillaume wrote:
> Hi everyone,
> I completely reconfigure my network settings today, (network @
> 192.168.1 to 192.168.154) everything work fine but i have to enter the
> following route each time the server start
>
> #route add default gw 192.168.154.34 eth0
> i add this line in rc.local, but i dont like this. Is there any other
> file i have to edit where i have to set my routes (i mean when system
> is starting up and net. interface mounted!)
Make sure that you have no GATEWAY settings in
/etc/sysconfig/network-scripts/ifcfg-* and then add a line:
GATEWAY=192.168.154.34
to /etc/sysconfig/network
Paul.
More information about the fedora-list
mailing list