Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have six similar RHEL 6 servers in the lab and the settings are same in all the servers. The settings are,

static IP address: 129.XXX.XXX.XX
Subnet Mask:
Default Gateway: 129.XXX.XXX.1

My default gateway has suddenly stopped working in one of the servers (server1) and am investigating what caused this issue.

Now, if I do route -n in server1, I get the output as,

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
129.XXX.XXX.0   U     1      0        0 eth0

I suspected it could be firewall issue but I checked with the school network and the firewall is configured correctly. My /etc/hosts file is as below.   server1.xxx.edu        localhost

My /etc/resolv.conf is as below.

# Generated by NetworkManager
search xxx.edu. xxx.edu
nameserver 129.xxx.xx.xx

In server2 which belongs to the same network as server1, route -n gives the output as below.

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
129.xxx.xxx.0   U     1      0        0 eth2         129.xxx.xxx.1         UG    0      0        0 eth2

I am trying to figure out if am missing something else.


The contents of /etc/sysconfig/network on server1,


Edit 2:

After I changed the default gateway, if I execute route -n command the output is as below.

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
129.xxx.xxx.0   U     0      0        0 eth0     U     1002   0        0 eth0

I also tried removing the default gateway entry in the /etc/sysconfig/networks file as well. But I get the same output for route -n as above.

cat /etc/sysconfig/network-scripts/ifcfg-eth0
NAME="System eth0"
share|improve this question
On server1, what is content of /etc/sysconfig/network? – cuonglm Aug 4 '14 at 20:18
@Gnouc, please see the edit. – Ramesh Aug 4 '14 at 20:20
up vote 2 down vote accepted

It looks like you have an invalid GATEWAY value in /etc/sysconfig/network for server1. So, change it to your gateway ip address:


Save file, restart networking service to make the change.

share|improve this answer
thanks. As soon as posted the edit I tried out that option. But unfortunately it seems to not work. – Ramesh Aug 4 '14 at 20:28
@Ramesh: Did you restart networking service? – cuonglm Aug 4 '14 at 20:32
no luck. I tried rebooting the machine as well. – Ramesh Aug 4 '14 at 20:51
How route table look like after you restart? And did you check config file of your network card? /etc/sysconfig/network-scripts/ifcfg-* – cuonglm Aug 4 '14 at 20:52
thanks for providing more info. I have updated my question with more details. – Ramesh Aug 5 '14 at 16:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.