1823057 Members
3184 Online
109645 Solutions
New Discussion юеВ

default route missing

 
Paul Wasik
Frequent Advisor

default route missing

Howdy, I have red hat enterprise linux on a dl585g2. Durring the build process, I typo'd the default GW into the IP bonding setup (210.216.32.1). The result is that I have an extra route (same ip as typo gw?) and do not have a default route after a reboot. as far as topical config files are concerned (network, network ifcfg-bond0 ifcfg-eth0), they are spot-on; see below. I also have other identicaly built ('cept the typo) servers to compare.

Please help me understand what could be causing this lost default route and reatained typo-gateway. I would like to know what other config files I need to examine and/or remove or update.

thanks

-Paul

here are network conf files.

[root@isdptlhpdr001 sysconfig]# cat network
NETWORKING=yes
HOSTNAME=isdptlhpdr001
GATEWAY=10.216.32.1
[root@isdptlhpdr001 sysconfig]# cat ./network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
IPADDR=10.216.33.113
NETMASK=255.255.240.0
GATEWAY=10.216.32.1



note that I have manually added the default in the below route info.


[root@isdptlhpdr001 sysconfig]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.216.32.0 * 255.255.240.0 U 0 0 0 bond0
210.216.32.0 * 255.255.240.0 U 0 0 0 bond0
169.254.0.0 * 255.255.0.0 U 0 0 0 bond0
default 10.216.32.1 0.0.0.0 UG 0 0 0 bond0
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: default route missing

Shalom,

set the default route one place or the other.

Doing it in two places causes problems.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Paul Wasik
Frequent Advisor

Re: default route missing

I don't know where it's being set to contradict the default of the /etc/sysconfig/network file.

It's odd that there is no default route/gateway even though by the network file, there should be. let alone the additional route.

where else is the default route set or unset?

Paul Wasik
Frequent Advisor

Re: default route missing

I found the issue using info from this command:

/sbin/service network status

this revealed that I had several bond interfaces configured (command output):

[root@isdptlhpdr001 network-scripts]# /sbin/service network status
Configured devices:
lo bond0 bond0.old bond0.orig eth0 eth1 eth2 eth3 eth4 eth5
Currently active devices:
lo bond0 eth0 eth1

these are the bad entries:

bond0.old bond0.orig

from this I realized that my "backup" copies of the bond0 config file were getting used/set:

[root@isdptlhpdr001 network-scripts]# pwd
/etc/sysconfig/network-scripts
[root@isdptlhpdr001 network-scripts]# ls -l | grep bond
-rw-r--r-- 1 root root 113 Sep 3 15:20 ifcfg-bond0
-rw-r--r-- 1 root root 114 Sep 3 10:43 ifcfg-bond0.old
-rw-r--r-- 1 root root 113 Aug 14 15:20 ifcfg-bond0.orig

those files were removed/renamed and the server rebooted. the routes look good as well as network service status:

[root@isdptlhpdr001 network-scripts]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.216.32.0 * 255.255.240.0 U 0 0 0 bond0
169.254.0.0 * 255.255.0.0 U 0 0 0 bond0
default 10.216.32.1 0.0.0.0 UG 0 0 0 bond0
[root@isdptlhpdr001 network-scripts]# /sbin/service network status
Configured devices:
lo bond0 eth0 eth1 eth2 eth3 eth4 eth5
Currently active devices:
lo bond0 eth0 eth1

note that the mistake bond0 are gone and the routes are as expected.
Paul Wasik
Frequent Advisor

Re: default route missing

see above for solution.