Re: set a persistent route

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

 



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.


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

  Powered by Linux