LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   can't ping local IP address but can ping remote hosts (https://www.linuxquestions.org/questions/linux-networking-3/cant-ping-local-ip-address-but-can-ping-remote-hosts-475941/)

rob_xx17 08-21-2006 12:31 PM

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.

benjithegreat98 08-21-2006 12:40 PM

Do you have a firewall turned on that would block pings?

rob_xx17 08-21-2006 12:47 PM

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.

nigelc 12-01-2006 07:07 PM

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.

aneeshk_k 12-02-2006 08:39 AM

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.


All times are GMT -5. The time now is 09:49 AM.