New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
CentOS 5, Ping unknown / host unreachable
I am having a few issues, After installing CentOS 5.7 it appears their is a issue.
I can run wget / yum update perfectly fine and it connects with a decent speed but when trying to ping a IP Address or Hostname it says "Host is Unreachable". I have searched on the internet and at the momment putting it down to the dns resolvers but I am not sure what to set these too.
The IPTables is not showing anything that could block ICMP.
Am I right in thinking this is the /etc/resolv.conf file?
Comments
Hm, possibly. Try using google's DNS servers - 8.8.8.8 and 8.8.4.4.
@Jacob
We had this exact issue today on a new KVM node. Change /etc/resolv.conf to
nameserver 8.8.8.8
nameserver 8.8.4.4
I spent like 3 Hours yesterday with the annoying noise of 5 Fans Constantly in my ears trying to fix this issue, Well aswell as doing other things but yeah I only had one monitor so searching google on my phone was not fun at all and having to constantly switch the Display cables around.
Lol i spent hours today wondering why i could ping the server from the outside but couldn't ping google from inside.
I had been playing with KVM network bridges at the time, due to the newer versions using "em1" instead of eth0 i was thinking i had slipped eth0 somewhere i shouldn't have, turned out the resolv file was empty :P
Hehe, I will boot it up later tonight and see if the fix above works.
Thanks guys!
It is still not working, My resolv.conf is the following:
nameserver 8.8.8.8
nameserver 8.8.4.4
search localdomain
It's on a shared network at the momment.
Have you tried stopping iptables? as I recall, the default installation of iptables is rather stringent.
@Damian Still is playing up and Ping isn't working.
Hmm, can you paste the results of ifconfig here?
You said something about shared network.. is a public shared network of some sort? As in, ICMP may be blocked by something upstream of you?
Can you ping localhost?
Pinging localhost works, Ill just box it up and drop it off at the DC. Im sure James can sort this.
Its proberly my router but my desktop pings fine.
You might behind a network that only allows certain port, I know at college they only allow port 80 and 443.
SELinux may be?
SELinux would not be the cause of this, It's most likely either the router or the DNS/LAN Setup.
I'm sure it will work once it is at the DC.