Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-21-2006, 12:31 PM   #1
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54

Rep: Reputation: 15
can't ping local IP address but can ping remote hosts

Good morning everybody.

Here's the problem. I can ping localhost, I can ping, but I cannot ping my own IP address (it's What makes it the strangest of all is that I can ping everything else. I can ping my gateway, I can ping (public DNS server on the Internet). Does anybody have any idea what could be the cause of it and possibly the solution as well? Thanks a bunch.

Old 08-21-2006, 12:40 PM   #2
Senior Member
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Do you have a firewall turned on that would block pings?
Old 08-21-2006, 12:47 PM   #3
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54

Original Poster
Rep: Reputation: 15
no, the firewall is not installed.

I noticed the problem when I was trying to access the Internet. I would open up Mozilla and nothing would happen. I checked if I can ping anything and the ping to cameback successful. Then I pinged another DNS server,, and it came back OK. I pinged google and it said that it could not resolve the server. So I pinged, which is google's IP address and it came back successful. So I thought that I have a DNS problem, that I could resolve mnemonic addresses. But then I put DNS servers' addresses manually and I still had the problem. When I put in Mozilla, it opened the page with no problems. So I pinged localhost, it came back successful. I pinged, again fine. But my local IP address is not good. The manual says that if localhost is not successful, then it's the TCP/IP stack problem and TCP/IP needs to be reinstalled. But if local ip address is not successful, then it's the ethernet card. But it's not the card because the I can ping other hosts. Also, everything worked fine just a couple days ago when I was at home. And not in the dorm it's not happy. I know it's my computer because I hooked up my friend's computer and everything was OK.
Old 12-01-2006, 07:07 PM   #4
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 7
Posts: 396
Blog Entries: 4

Rep: Reputation: 80
Are you going through a modem/router? You are maybe using the wrong ip address for the network card. Also a setting in the modem/router could be wrong.
Old 12-02-2006, 08:39 AM   #5
LQ Newbie
Registered: Oct 2004
Posts: 17

Rep: Reputation: 1
Thumbs up

As tou have no problem with your TCP/IP , any kind of firewall is blocking the pings. Check file like " /proc/sys/net/ipv4/icmp_echo_ignore_all " to see a 1 or 0 ( 1 for ignore and 0 for accept ).

The problem with your internet access may be a DNS problem. Check you have entered the correct DNS ip in resolv.conf.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't ping the local ip address durailq Linux - Newbie 2 01-23-2006 03:18 PM
FC4 won't ping or the internet, but will ping local computers jalsk Linux - Networking 4 11-22-2005 05:59 PM
dhcp client can't ping gateway but can ping other local hosts dirty_forks Linux - Networking 7 10-08-2004 10:54 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM
can't ping remote but can ping local hnash53 Linux - Networking 8 01-26-2004 08:24 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration