How to set default gateway

Hanny Tidore htfrontier at gmail.com
Tue Jul 19 12:45:30 UTC 2005


For the /etc/sysconfig/network-scripts/ifcfg-interfacename, do I
specify at ifcfg-bond0 only or do I also need to specify at ifcfg-eth1
and ifcfg-eth2 ?

For /etc/sysconfig/network, do I have to specify the netmask of the
default gateway ?

Thanks.

On 7/19/05, Paul Howarth <paul at city-fan.org> wrote:
> 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.
> 
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>




More information about the fedora-list mailing list