[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Help --- Default Gateway will not change
- From: Tony Nugent <tony linuxworks com au>
- To: enigma-list redhat com
- Subject: Re: Help --- Default Gateway will not change
- Date: Wed, 30 Oct 2002 14:05:15 +1000
On Tue Oct 29 2002 at 18:34, Keith Mastin wrote:
> >Yes, I understand about linuxconf...however, I have edited the
> >/etc/sysconfig/network file manually and still after rebooting will not
> >change. Furthermore, I checked another Linux box and changed the file
> >manually and everything works fine...the default gateway changes on that
> >box. It just happens to be on this one box which is needed.
>
> okay, then use the route command.
> route del default
> route add degault gateway xxx.xxx.xxx.xxx
> that should do it...
Are you suggesting that this be done manually after every reboot? :)
(BTW /sbin/route is essentially obselete, /sbin/ip is the new and
*powerful* networking configuration tool. Have a google search
for the linux advanced routing howto and you'll soon see why).
The problem is like to be that the gateway address is specified in
one of the /etc/sysconfig/network-scripts/ifcfg-eth? files, which
needs to be deleted.
Adding this to /etc/sysconfig/network will probably work (not sure,
it used it)...
GATEWAY=xxx.xxx.xxx.xxx
GATEWAYDEV=eth0
One way to "fix" it more permanently is to put this into
/etc/sysconfig/static-routes:
eth0 default gateway xxx.xxx.xxx.xxx
(or whatever interface the gw is on).
See /usr/share/doc/initscripts-*/sysconfig.txt for all the details.
Cheers
Tony
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]