LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-21-2006, 12:31 PM   #1
rob_xx17
Member
 
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 127.0.0.1, but I cannot ping my own IP address (it's 10.50.1.100). What makes it the strangest of all is that I can ping everything else. I can ping my gateway, I can ping 4.2.2.2 (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.

r.
 
Old 08-21-2006, 12:40 PM   #2
benjithegreat98
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
rob_xx17
Member
 
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 4.2.2.2 cameback successful. Then I pinged another DNS server, 151.198.0.38, and it came back OK. I pinged google and it said that it could not resolve the server. So I pinged 64.233.167.99, 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 64.233.167.99 in Mozilla, it opened the page with no problems. So I pinged localhost, it came back successful. I pinged 127.0.0.1, 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
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 4
Posts: 304
Blog Entries: 4

Rep: Reputation: 52
Hi,
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
aneeshk_k
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.
 
  


Reply


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 127.0.0.1 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


All times are GMT -5. The time now is 10:27 PM.

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