-
Home
-
News
- [Solved] How to Fix Ping General Failure on Windows 10?
By Stella | Follow |
Last Updated
Have you ever encountered the ping general failure issue when you want to use Command Prompt to test the response time of an IP address on your Windows 10 computer? If yes, do you want to fix the issue? This post from MiniTool Software will show you 4 methods that are proved to be effective.
The ping general failure error is an issue that happens when you run ping commands in Command Prompt to test the response time of an IP address. The reason for this issue is not clear now because there is no available explanation of this ping transmit failed general failure issue on the interface of Command Prompt.
But, don’t worry. MiniTool Software collects some solutions that are proved to be effective and shows them to you in this post. You can try these methods to find out the most suitable one.
How to Solve Ping General Failure in Windows 10?
- Use IPv4
- Disable all IPv4 or IPv6 transition technologies
- Reset TCP/IP for your computer
- Uninstall suspected applications
Solution 1: Use IPv4
By default, Windows 10 is set to use the IPv6 rather than IPv4. This can be the possible reason for this ping transmit failed general failure error. To rule out this possibility, you can follow this guide to set Windows 10 to use IPv4:
- Go to this page to download the Prefer IPv4 over IPv6 in prefix policies.
- Click the downloaded file and then follow the on-screen guide to complete the process.
- When the progress ends, you need to reboot your computer and check whether the issue disappears.
Solution 2: Disable all IPv4 or IPv6 Transition Technologies
Some users reflect that they solve the issue by disabling all IPv4 or IPv6 transition technologies. So you can also use this method to have a try.
1. Run Command Prompt as administrator.
2. Run the following commands and press Enter after each command:
netsh int ipv6 isatap set state disabled
netsh int ipv6 6to4 set state disabled
netsh interface teredo set state disable
3. Close Command Prompt and reboot your computer.
Solution 3: Reset TCP/IP for Your PC
If the ping general failure Windows 10 issue still persists, you can try to reset your computer’s TCP/IP to see whether the issue can be solved.
Here is a guide:
1. Run Command Prompt as administrator.
2. Run the following commands and press Enter after each command.
netsh i i r r
netsh winsock reset
3. Shut down Command Prompt and reboot your computer.
Solution 4: Uninstall Suspected Applications
If all the above solutions don’t work you, you need to consider that where there are conflicting programs that can stop HTTP traffic and cause Ping general failure on your Windows 10 computer. You can install all these conflicting programs to have a try.
However, you may don’t know which applications you should block. We show you some advice. You can uninstall these programs: Charles, Wireshark, Peerblock, and the AnyConnect mobility client.
After the uninstallation, you can reboot your computer and then check whether the issue disappears.
Bottom Line
We hope these methods can help you solve the Ping general failure issue on Windows 10. Should you have any related issues, you can let us know in the comment.
About The Author
Position: Columnist
Stella has been working in MiniTool Software as an English Editor for more than 8 years. Her articles mainly cover the fields of data recovery including storage media data recovery, phone data recovery, and photo recovery, videos download, partition management, and video & audio format conversions.
If you happen to run into a scenario when using the ping utility in which a normal DOS command prompt results in either of the following errors, there’s a fix for that!
- ‘ping’ is not recognized as an internal or external command operable program or batch file
- ‘ipconfig’ is not recognized as an internal or external command operable program or batch file.
It’s possible that the installation of another application or an update has changed the priority of the system’s environmental variables. To address this:
- Type the Windows key once
- Type “View advanced system settings” and click on the icon that should appear
- Click on “Environment Variables”
- Under the “System variables” section, click “PATH” and then click the “Edit” button
- Ensure that you move the value for “%SystemRoot%\system32” to the very top by using the “Move Up” buttons
- Click OK to all dialog boxes, close your command prompt and then try running a ping from the command prompt again!
If you’ve taken these steps already, then this was not the underlying cause and merits further investigation.
Если вы точно уверены, что компьютер находится в сети, что он получает правильные настройки IP и пр., попробуйте выполнить ещё 2 дополнительных действия.
1. Проверьте, включено ли Брандмауэре правило, которое разрешает ответ на пинги.
Перейдите в «Параметры Windows», далее «Сеть и Интернет».
В открывшемся окне (справа или внизу), найдите пункт Брандмаэр Windows.
Далее, в окне Брандмауэра, выберите пункт «Дополнительные параметры».
В левой части открывшегося окна, выберите пункт «Правила для входящих подключений», затем, прокрутите список вниз, пока не найдёте правило с названием «Наблюдение за виртуальной машиной (эхо-запрос — ICMPv4 — входящий трафик)», нажмите на нём правой кнопкой мыши и выберите пункт «Включить правило».
Проверьте, появился ли пинг по IP и имени компьютера (хоста).
Если пинг по имени хоста не включился, то, на компьютере который не пингуется выполните второе действие.
2. Перейдите в «Параметры Windows» и выберите пункт «Сеть и Интернет».
Далее выберите пункт «Ethernet».
Далее «Настройка параметров адаптера»
Найдите интерфейс, который подключен к вашей локальной сети. Нажмите на нём правой кнопкой мыши и выберите пункт «Свойства».
В свойствах сетевого интерфейса отключите протокол IPv6.
Пинги по имени хоста должны проходить.
Встроенный брандмауэр Windows в целях безопасности по умолчанию блокирует входящий ICMP трафик как в десктопных Windows 10/11, так и в Windows Server. Это означает, что вы не сможете удаленно проверить доступность компьютера с помощью стандартной команды
ping
, т.к. она будет отвечать о превышении интервала ожидания запроса (
Request timed out
) для ICMP Echo-Reply. Если вы хотите сделать возможной проверку доступности хостов Windows по протоколу ICMP из системы мониторинга или вручную из командной строки, можно разрешить ответы на ICMP эхо-запросы.
Чтобы разрешить отправку ответов на запросы по протоколу ICMP, нужно включить предустановленные правила в брандмауэре Windows.
- Откройте оснастку управления Windows Defender Firewall with Advanced Security, выполнив команду
wf.msc
- Перейдите в раздел Inbound Rules
- Найдите правило Core Network Diagnostics – ICMP Echo Request (ICMPv4-In) и включите его.
- В моем случае есть два правила с этим именем. Одно для частного и общедоступного сетевого профиля Windows, и второе для доменного. Я включил их оба. Можно также включить правило, разрешающее ICMP ответы для IPv6 протокола (если используется).
Есть также другое правило File and Printer Sharing (Echo Request – ICMPv4-In), которое также разрешает компьютеру отвечать на эхо-запросы
ping
.
Попробуйте пропиговать ваш компьютер и убедитесь, что теперь он отвечает на ICMP запросы.
Можно включить правила Windows Firewall, разрешающие ответы на эхо-запросы ICMP с помощью такой команды PowerShell:
Set-NetFirewallRule -Name CoreNet-Diag-ICMP4-EchoRequest-In -enabled True
Если нужно ограничить список IP подсетей или хостов, которым разрешено отправлять ответы на ICMP запросы, выполните команду:
Set-NetFirewallRule -Name CoreNet-Diag-ICMP4-EchoRequest-In -enabled True -RemoteAddress 192.168.12.0,192.168.31.94
Откройте свойства правила в Windows Firewall и проверьте, что теперь правило разрешающие ICMP ответы будет работать только для указанных IP/подсетей.
Если в файрволе отсутствует (удалено) правило для входящих ICMP запросов, можно создать его из командной строки:
netsh advfirewall firewall add rule name="Allow_ICMPv4_Echo" protocol=icmpv4:8,any dir=in action=allow
Другой пример PowerShell команды, которое создаст правило файервола, разрешающего ping для всех хостов в локальной сети:
New-NetFirewallRule -DisplayName "Allow_ICMPv4_Echo" -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -RemoteAddress localsubnet -Action Allow
Если нужно заблокировать ответы на ICMP эхо-запрос независимо от того, какие правила включены, создайте запрещающее правило, которое будет иметь более высокий приоритет:
New-NetFirewallRule -DisplayName "Block_ICMPv4_Echo" -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -RemoteAddress localsubnet -Action Block
Чтобы разрешить ответы на ICMP ping на всех компьютерах в сети, можно включить правило Windows Firewall с помощью доменной групповой политики .
- Откройте редактор доменных GPO (
gpmc.msc
), создайте или отредактируйте имеющуюся GPO и назначьте ее на целевую OU или корень домена. - Перейдите в раздел Computer Configuration -> Windows Settings -> Security Settings -> Windows Firewall with Advanced Security -> Inbound rules
- Создайте новое правило, выберите Predefined rule типа Core Networking Diagnostics
- Укажите какие правила ICMP Echo request нужно включить.
- На следующем шаге вы берите Allow the connection.