How to set default gateway

Paul Howarth paul at city-fan.org
Tue Jul 19 12:37:12 UTC 2005


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.




More information about the fedora-list mailing list