[LINUX] [AWS] What to do when the ping command causes a "timeout"

Time out with ping command

I want to create an EC2 instance on AWS and check the response with the ping command, but it times out.

スクリーンショット 2020-05-20 8.26.30.png

■ There are two main possible reasons.

  1. The server is down
  2. Blocked by a firewall

This time about 2.

ICMP must be allowed in the security group that corresponds to the firewall.

■ Procedure

  1. Log in to the management console
  2. Select the security group you are using
  3. Click "Edit Inbound Rule"
  4. Select "Custom ICMP-IPv4" and select the source anywhere
  5. Save the rule

スクリーンショット 2020-05-20 8.36.05.png

スクリーンショット 2020-05-20 8.42.41.png

If the cause of not responding with the ping command is the security group setting, the ping command should pass with the above settings.

reference

Building a network & server from the basics of Amazon Web Services

Recommended Posts

[AWS] What to do when the ping command causes a "timeout"
What to do when gdal_merge creates a huge file
What to do if the print command itself causes an error in Maya python
[AWS] What to do when you want to pip with Lambda
What to do when a Remove Error occurs when updating conda
What to do when Ubuntu crashes
What to do when a video cannot be read by cv2.VideoCapture
What to do when the jupyterlab extension settings are not reflected
What to do when you get "I can't see the site !!!!"
What to do when the value type is ambiguous in Python?
[For IT beginners] What to do when the rev command cannot be used with Git Bash
What to do when a part of the background image becomes transparent when the transparent image is combined with Pillow
[Memorandum] What to do when a warning appears after executing pip list
What to do when the result downloaded via scrapy is in English
[Docker] What to do when error Couldn't find the binary git appears
What to do if the yum command fails to set locale, defaulting to C
What to do if fprintd requires a password when registering your fingerprint
What to do when the warning "The environment is in consistent ..." appears in the Anaconda environment
What to do when a warning message is displayed in pip list
What to do if you get a "Wrong Python Platform" warning when using Python with the NetBeans IDE
What to do when "Something is already running at port 8000" is displayed when the develop command of Gatsby is executed.
What to do when PermissionError of tempfile.mkstemp occurs
It's a Mac. What is the Linux command Linux?
Create a command to get the work log
Example of what to do when the sample script does not work (OpenCV-Python)
What to do when a warning appears around Python integration in Neovim's CheckHealth
Let's Encrypt updated! What to do if the certbot renew command doesn't work
[Ubuntu 18.04 LTS] What to do when the screen resolution cannot be selected [NVIDIA]
What to do when the graph does not appear in jupyter (ipython) notebook
What to do if a version error occurs in the selenium Chrome driver
What to do when you want to receive files from a Windows client remotely
[Go 1.13] What to do when unexpected directory layout: appears
[openpyxl] What to do when IllegalCharacterError appears in pandas.DataFrame.to_excel
How to write a GUI using the maya command
curl: (60) What to do when Issuer certificate is invalid.
What to do when is not in the sudoers file.This incident will be reported.
What to do if you get a memory error when converting from PySparkDataFrame to PandasDataFrame
What to do when only the window is displayed and nothing is displayed in pygame Note
What to do when raise ValueError, "unsupported hash type"
What to do if a UnicodeDecodeError occurs in pip
A command to check when something goes wrong when the server is not doing anything
What to do when "cannot import name xxx" [Python]
I made a command to markdown the table clipboard
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do when you can't bind CaboCha to Python
Make a note of what you want to do in the future with Raspberry Pi
What to do when a Missing artifact occurs in a jar that is not defined in pom.xml
What to do when Japanese is not displayed on matplotlib
What to do if the package dependency cannot be repaired
What to do if pip gives a DistributionError in Homebrew
What to do when PyCharm font is strange or garbled
What to do when Unalignable boolean Series provided as indexer
Check in advance what happens when you execute the command
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do when an error occurs with import _ssl
What to do if package installation fails when deploying to heroku
What to do when "SSL: CERTIFICATE_VERIFY_FAILED _ssl.c: 1056" appears in Python
OSError: [Errno 40] What to do when Message too long appears
What to do when "Invalid HTTP_HOST header" appears in Django
ImportError: No module What to do when you are told
When you want to hit a UNIX command on Python