We changed the IP addresses of our RedHat 9 system that controls a conveyor/sorter system. When originally installed many years ago someone chose 192.0.0.10 as the IP! But for some reason it defaults to the original gateway and routing tables after every reboot. It works before reboot when I use ip route commands. I then edited various config files (see below). Here is the output of uname -a:Linux *server_name* 2.4.27-adeos #3 Wed Apr 20 14:19:08 CDT 2005 i686 i686 i386 GNU/Linuxcat /etc/resolv.conf:nameserver 192.168.141.247nameserver 192.168.141.249domain nv.xxx.comcat /etc/sysconfig/network:NETWORKING=yesHOSTNAME=*server_name*GATEWAY=192.168.141.254cat /etc/sysconfig/network-scripts/ifcfg-eth0:DEVICE=eth0ONBOOT=yesBOOTPROTO=staticBROADCAST=192.168.141.255IPADDR=192.168.141.130NETMASK=255.255.255.0NETWORK=192.168.141.0GATEWAY=192.168.141.254cat /etc/sysconfig/network-scripts/route-eth0:default via 192.168.141.254 dev eth0After reboot, traceroute shows:[root@*server_name* network-scripts]# traceroute 192.168.143.253traceroute to 192.168.143.253 (192.168.143.253), 30 hops max, 38 byte packets 1  192.0.0.10 (192.0.0.10)  2997.268 ms !H  2993.543 ms !H  2999.993 ms !Hip route output after reboot:192.0.0.0/24 dev eth0  scope link192.168.141.0/24 dev eth0  scope link169.254.0.0/16 dev eth0  scope link127.0.0.0/8 dev lo  scope linkdefault via 192.0.0.254 dev eth0 I'm running out of ideas!
redhat 9 persist default gateway
rhel;routing;iproute
The problem isn't the route except indirectly;  the problem is that eth0 is still getting its old IP address, and not just the route.1) be CAREFUL with simply renaming files in /etc/sysconfig/network-scripts/{ifcfg/route}-* :  the routine to find and load interfaces is only very dumb, and will try to bring up eth0.org as a valid interface!  Dont' clutter things up with old file cruft around, but this is an added surprise maybe.  Kill those, bounce the box, see if it changes?2) check where that GATEWAY is being picked up.  I think it's best to have it in /etc/sysconfig/network, but that's nothing to worry about yet.  