Welcome to the Computer Network Engineering training tutorials by CoreNetworkZ Tech Solutions. Today, I will explain the ping error code 2. After reading this tutorial, you will learn about ping status code 2, the reasons, and the solution.
Reasons to Get Ping Response Code 2
Andrea Filippelli asked why he got ping status code 2 while pinging Instagram from his Ubuntu laptop. He asked this question in the comment section. So, let me explain the reasons for getting the ping error code 2.
Ping Error Code 2 means the ping operation failed.
A faulty network connection that stops the ping packets from reaching their destination can result in status code 2. So, the primary reason is network connection issues.
A study conducted by CoreNetworkZ Tech Solutions reveals that wrong parameters set on ping packets can end with ping error code 2.
So, I believe you understand the reasons for seeing ping status code 2.
Resolve Ping Error Code 2
This section covers the solution to fix it. If you get error code 2 while pinging to an IP address (or a website URL) from the command prompt, follow the steps below to troubleshoot it.
Power Cycle The Network
Do you remember the primary reason I explained in the previous section? If yes, you understand the importance of power cycling the network to fix Ping Error code 2.
Follow the instructions provided in the link below.
Federico Bertini confirmed this solution in his comment. He followed the instructions and power cycled his home network. It fixed the error status code 2.
Perform Winsock reset
Let me share the second step to fix it. Open the command prompt (open with administrative privileges) and type the following command.
netsh winsock reset
Press the enter key. To learn more about it, visit this link.
Reset TCP/IP suite :
My regular readers are familiar with the name Ashish Mudgal. He is a senior Network Engineer at CoreNetworkZ Tech Solutions. He suggested this solution.
Type the following command on the command prompt and press the enter key.
netsh int ip reset c:\tcp.txt
I also suggest my readers try the solution provided in the link below if nothing above works.
Turn Off the Firewall While Pinging From your PC
This solution is also a suggestion from Ashish Mudgal. He noticed how a wrong Firewall setting can generate different types of ICMP error codes. I support his view. I recommend my readers turn off the firewall while pinging to test it.
Uninstall and Reinstall NIC Driver:
The final solution is to uninstall and reinstall the Network Adapter driver on your computer. I do not recommend this unless you have downloaded the latest NIC driver.
You have successfully learned everything about the Ping Reply status Code 2. What do you think about this article? Let me know your feedback in the comment section.
Reference
- https://community.cisco.com/t5/ipv6/error-code-2-icmp-ipv6/td-p/4257409
- https://community.hpe.com/t5/operating-system-hp-ux/ping-error-codes/td-p/2710375
Could not find a suitable section so I written here, how to become a moderator for your forum, that need for this?
ReplyDeleteIn case of any queries you can contact me by
ReplyDeleteadmin(at)corenetworkz.com
Thank you, Alex George. I did the power cycle solution. It fixed the error.
ReplyDeleteWelcome to CoreNetworkZ Tech Solutions. Thank you for your comment.
DeleteHello Alex,
ReplyDeleteI am seeing this error code 2 when ping from my laptop. Can you tell me the reasons?
Specification:
I pinged https://www.instagram.com/
Dell laptop with Ubuntu OS.
Hello Andrea,
DeleteWelcome to CoreNetworkZ Tech Solutions. I updated the article with the reasons for getting this error code.