can't ping local IP address but can ping remote hosts
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.