Re: How to set default gateway

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

 



Hanny Tidore wrote:
How do I set the default gateway manually (without using the route
command) ? Is there any file to edit ? I also need to specify the
netmask.

Netmask is a function of the interface and should be specified in /etc/sysconfig/network-scripts/ifcfg-interfacename

e.g.
NETMASK=255.255.255.0

The default gateway is a function of the system as a whole and should be set in /etc/sysconfig/network

e.g.
GATEWAY=10.1.2.3

Paul.


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

  Powered by Linux