• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

Linux - Respond to Ping

How do I allow my linux server to respond to ping?  
  • 2
3 Solutions
Steven CarnahanNetwork ManagerCommented:
First thing to check is if someone has disabled ping response:   http://www.linuxhowtos.org/Security/disable_ping.htm
To set it permanently (persistent after reboot)
sysclt -w net.ipv4.conf.icmp_echo_ignore_all=1
Your Linux box will respond to ping by default.  If yours isn't, then most likely it's because:

1)  It's not visible to the machine pinging it because
  a)  It is not online at all
  b)  It's gateway IP is incorrect
2)  It is on a private IP behind a firewall
3)  It is blocking ping (run "/sbin/iptables -nL | grep icmp" and see if you get any reject rules)
Steven CarnahanNetwork ManagerCommented:
One other thing to mention is the a layer 3 device (switch/router) could be blocking ICMP.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now