Перейти к содержимому

Destination host unreachable что значит

  • автор:

Pinging computers on local network: destination host unreachable

I have two ubuntu computers on a local network and neither one of them can ping each other. Every time I try I get the «destination host unreachable» error message. Both computers are able to access the internet with any problems.

I have a ActionTech v1000h router from Telus. I’ve been in touch with one of their customer representatives and they said that there should’t be any reason why two devices cannot ping each other on the network.

I’m totally at a loss, do any of you guys have any ideas?

Computer 1:

sudo iptables -L

Computer 2:

sudo iptables -L

Edit: Example of the error when computer 1 tries to ping computer 2:

Edit 2: arp -a of both computers

Edit 3: nmap -sn 192.168.1.0/24 on computer 2

Edit 4: The tcpdump logs of both computers while the first ping 192.168.1.254 and then each other:

Edit 5: Setup static ips for both computers etho0 and connected them with an internet cable. Both computers can definitely ping each other through the ethernet cable! ifconfig -a eth0 results:

9 Answers 9

ping gateway from both computers ping 192.168.1.254 then try to ping comp1 to compt2 and comp2 to comp1 then post results of arp -a from BOTH boxes

Edit

Interesting, something is blocking traffic

run sudo tcpdump -ni wlan0 arp in one window on both computers and then try pinging each other and the gateway from another window on both again and post results

Edit2

So far that shows that comp1 is doing what it’s suppose to sending arp request (asking for comp2s etherner address) but not getting an arp reply (hearing anything back). Need to see the tcpdump from PC2 to see the full picture. Either run the screen command or do this on PC1 sudo tcpdump -w pc1.pcap -ni wlan0 arp & and on PC2 sudo tcpdump -w pc2.pcap -ni wlan0 arp & & should throw it in the background and give you your prompt back for pings. After pings fail bring the jobs back to foreground with fg %1 stop it ctrl+c and read the written files with sudo tcpdump -r pc1/2.pcap

Edit3 PCs are doing what they’re suppose to, putting ARPs out but they’re not getting through which points to the router. Maybe a disable firewall setting, doubt it supports VLANs? Kinda wish you let it run a bit longer at 22:45:48.379058 your router sent its own ARP request when it was looking for PC1 22:45:48.379058 ARP, Request who-has 192.168.1.77 tell 192.168.1.254, length 28 both PCs should’ve seen it, we can see that PC1 saw it and replied with its IP but cant tell if PC2 got it since since you stopped it stop just short at 22:45:09.796214. Assuming you’re clocks are synced with NTP that is.

Edit4

See that it’s still not resolved. Didn’t see that you have eth adapters on both PCs. Can you hardwire into the router on eth instead of wlan and see if you can ping then? Or get another router? Or make a hotspot on the phone connect both PCs and try to ping? Also, surprised to see that you were able to connect two PCs together and ping each other did you use a crossover cable?

Fix Destination Host Unreachable Ping Error Reply

During my network engineer career, one of the common ICMP errors I received while troubleshooting connectivity issues was Destination Host Unreachable.

This error was the cause of my Internet connectivity problems most times.

The same can be true for you too.

When you troubleshoot your connectivity problems, the chances of getting this ping error reply are very high.

Once you learn to resolve this error, you can fix most of your Internet connectivity problems. In this tutorial, I will explain everything about this error.

This tutorial has three parts.

The first part of this tutorial explains the meaning of the ICMP reply Destination Host Unreachable.

The second part explains the reasons for the ping reply Destination Host Unreachable.

The third part explains the steps to fix this error message.

So, let us check the meaning of the ping reply Destination Host Unreachable.

What Does Destination Host Unreachable Ping Reply Mean?

Before proceeding to the core of this tutorial, let me explain the meaning of this ping reply.

The Destination Host Unreachable error tells that the ping packets from your computer couldn’t find a route to the destination IP address(destination host).

Now you understand the meaning of this ping reply. However, you should ask yourself two questions to learn more.

Who replied to your device with this Destination Host Unreachable message?

Why the ping packets from your computer failed to reach the destination address?

Let me answer the questions one by one. But before I explain the first question, you must learn how the ping operation works.

Let us check how Ping works.

I am pinging my blog by typing ping www.corenetworkz.com on the Command Prompt.

The complete process is below.

My computer sends ICMP Echo Requests to the remote host www.CoreNetworkZ.com.

ICMP Echo Requests travel out of my computer through the network adapter.

Ping packets reach the default gateway. The default gateway is the router in most cases.

The default gateway needs to find a route to the destination address. So, the next step is checking the ARP table and Routing table.

Default Gateway finds a route to the Remote Gateway of the destination IP address.

Remote Gateway receives the packets.

Remote Gateway forwards the ping packets to the remote host (the final destination — server of CoreNetworkZ.com).

The Remote Host (web server of CoreNetworkZ.com) acknowledges by sending ICMP Echo Replies.

Can you tell me the potential sources for a Destination Host Unreachable reply from this ping workflow algorithm?

You can get this reply from two possible sources.

Your Default Gateway

How do we know whether the reply comes from the Default Gateway or Remote Gateway?

Well, it is simple.

All you have to do is to analyze the ping reply carefully.

Check the format of the message. It comes in two different forms.

Reply from x.x.x.x Destination Host Unreachable

If you see the following format, check the IP address.

Most of the time, x.x.x.x must be a Remote Gateway address.

Which shows the error message you received is from the Remote Gateway.

Destination Host Unreachable

If you don’t see an IP address in the error replies, they came from the Default Gateway.

In a home network, your home router is the Default Gateway.

Both error formats have different reasons. I will explain the reasons in the next part.

Reasons to Get the ICMP Error Destination Host Unreachable

Let us check why your computer displays the message Reply From x.x.x.x Destination Host Unreachable.

Have a look at the list below.

One of the reasons listed below can get you to the ICMP Echo message Destination Host Unreachable.

Your Default Gateway doesn’t know the route to the destination IP address.

Packet Routing issues on Remote Gateway.

The destination host might be down.

Strict Firewall Settings.

One of the frequent questions I receive from our readers is whether this error is related to Operating Systems ( like Windows and Linux ).

The answer is no.

Analyzing the ICMP Echo Destination Host Unreachable

Let me explain why I received this ICMP Echo Reply by analyzing a live example.

I send ping packets to the global DNS address 4.2.2.2 to troubleshoot the connectivity problem. The screenshot below shows the reply I received.

Which format is this?

It is the second format of the Destination Host Unreachable error.

The final part of this tutorial explains the procedure to fix the ICMP Error Reply Destination Host Unreachable.

How to Fix Ping Error Destination Host Unreachable?

If you do not want to go into the complexity of this ICMP Echo Reply, you can follow the instructions below to resolve the Destination Host Unreachable Ping error message.

Turn Off The Firewall

Aggressive firewall settings can interrupt the ICMP Echo Requests and cause the Destination Host Unreachable error.

Turn Off the Firewall to check whether the firewall is the reason for this issue on your computer.

Try to access the Internet after the firewall is Off.

Also, Ping a Web URL and check whether the issue persists. If so, go to the second solution.

Power Cycle The Network

A loose connection in your home network can invite the Destination Host Unreachable ICMP Echo Reply.

Outdated Routing and ARP tables also result in Ping errors.

Switch off every device in the network.

Disconnect power cables from Modem, PC, and Router.

Disconnect the Ethernet cables from Modem, Computer, and Router.

Reconnect the power and ethernet cables.

Power On the Modem and wait for one minute.

Power On the Router and wait for one minute.

Power On the PC and ping Google to check whether the Destination Host Unreachable error persists.

A proper Power Cycle will fix issues like corrupted ARP and Routing tables and loose connections.

If the issue persists, go to the final solution.

Disable IPv6 and Test the Connectivity

Sometimes devices fall into IP version conflicts. Different operating systems have separate IP version priorities.

Windows 10 prefers IPv6 to IPv4. Linux variants like Ubuntu, Fedora, and Debian prefer IPv6 to IPv4.

However, sometimes devices fail to work with IPv6.

Rarely it results in ICMP error messages. We can check it by turning off the IPv6 on your device.

Let us check how to turn off the IP Version 6 on a Windows 11 computer and test whether it fixes the Destination Host Unreachable issue.

    Right-click on the Network Adapter at the system tray.

You have learned to troubleshoot the Destination Host Unreachable Ping error message on Windows and Linux Systems and fix it.

We suggest you read similar tutorials to learn more about Computer Network Troubleshooting.

About The Author:

Alex George is a Microsoft and Cisco Certified Network Engineer. He has been working as a network engineer for more than ten years.

How to Solve Destination Host Unreachable Error?

‘Destination Host Unreachable’ is one of the usual but unexpected errors that flow out while carrying a network ping test.

It is a type of Troubleshooting IP Default Gateway Issues that induce incorrect default gateway, which further leads to halt in a network ping test. This error occurs in an environment of all internet protocol utilizing products where network ping tests with two hosts and a receiver are involved.

An example of a Destination Host Unreachable error:

C:\Users\Me>ping 192.168.225.45
Pinging 192.168.225.45 with 32 bytes of data:
Reply from 192.168.225.47: Destination host unreachable.
Reply from 192.168.225.47: Destination host unreachable.
Reply from 192.168.225.47: Destination host unreachable.
Reply from 192.168.225.47: Destination host unreachable.

Please enable JavaScript

It can be annoying for a command Prompt network ping check to obtain a “destination host unreachable” error. As you can see in the error above, there is an attempt to ping a particular IP address on a network computer and the response received is in the form above that does not provide the exact details about the error.

What’s the cause of the error?

A “Destination Host Unreachable” ping response is a strong indication that the initiating PC has a default gateway misconfiguration. Besides, there are other possible potential explanations for this error, including issues like cables that are incorrectly connected or firewalls that are too violent.

Apart from it, the simple answer to this problem may be whether you don’t have a device with an IP address system or you have a broken ARP table on your computer.

In order to fix this issue, you will have to analyze the network resources and determine where the issue is.

How to fix “Destination Host Unreachable” Error?

There are two scenarios for solving this error. Either of the technique can be used to resolve the error depending on the what is the actual cause of the error.

#1 Scenario – Default Gateway Misconfiguration

In case of a default gateway misconfiguration, we need to check and ensure our Default Gateway settings.

After that, the following steps are to be followed:

Step 1) To start with, our internet connectivity must be verified by a browser. We must visit google.com to see if it is running on our computer for this post. For post. If so, we realize that there is not a wider communication issue on our local network.

Step 2) Now, we have to check our IPv6 link to see if this is the issue. To do this, open the Prompt command and use the following code, but type “ping-6” for the isolation of the IPv6 line to insert your original IP address.

Step 3) We will then receive a reply in the command prompt like below:

Pinging 192.168.225.45 with 32 bytes of data:
Reply from 192.168.225.47: Destination host unreachable.
Reply from 192.168.225.47: Destination host unreachable.
Reply from 192.168.225.47: Destination host unreachable.
Reply from 192.168.225.47: Destination host unreachable.

Step 4) The above message comes from IP address 192.168.225.47 which seems to be connected to our request for remote gateway handling. To verify this, we need to run a traceroute using the following command:

C:\Users\Me>tracert -6 -d 192.168.225.45

Step 5) Followingly, you will get another response that must resemble the given below:

Tracing route 192.168.225.45 over a maximum of 30 hops:
1 1 ms 1 ms 1 ms 192.168.225.47
2 192.168.225.47 reports: Destination host unreachable.
Trace complete.

Step 6) From this, we can judge that the default gateway is 192.168.225.47. We may test our IP settings through a netshell to see if this is how it ought to be. Use the following order to open netshell:

Step 7) After opening the netshell, run the following command;

netshell>interface ipv6
netshell interface ipv6>showconfig

Step 8) The response should display our local area connection details, with the default gateway reference thread. We see the following in our example:

Default Gateway 192.168.225.47

This verifies that the default gateway is actually designed for 192.168.225.47, but by examining the IP address of our new computer, you will note that it is somewhat different: 192.168.225.50.

  • Go back to Command Prompt to test if the problem has been fixed and exit Netshell using the following command:

netsh interface ipv6>exit

  • For once more we are in a position to run the ping test using the command:

C:\Users\Me>ping -6 192.168.225.45

Same like before, we will again receive the response, in the same way, showcasing the new Default Gateway:

Pinging 192.168.225.45 with 32 bytes of data:
32 bytes from 192.168.225.45: icmp_seq=0 ttl=57 time=27.205 ms
32 bytes from 192.168.225.45: icmp_seq=1 ttl=57 time=14.109 ms
32 bytes from 192.168.225.45: icmp_seq=2 ttl=57 time=13.887 ms
32 bytes from 192.168.225.45: icmp_seq=3 ttl=57 time=13.954 ms
32 bytes from 192.168.225.45: icmp_seq=4 ttl=57 time=18.269 ms

And now you can see our ping test, as well as connection, are working successfully.

#2 Scenario – Corrupted ARP Table

It is a situation where you cannot send packets to an IP Address before finding the MAC address (physical address) of the destination device. The MAC address of appliances with a different IP Address can be seen in the ARP table.

  1. Delete ARP Cache
  • Open the Command Prompt as Administrator
  1. Click on the Windows Search and type cmd.
  2. Now, right-click on the Command Prompt from the Search Window.
  3. After that click on ‘Run as Administrator’ option.
  • Type the given below command and press enter
  • Try again to collect the same IP address and to test the issue

2. Run a Traceroute

  1. Open Command Prompt
  2. Type the given below command and press the enter key.

The traceroute result gives the result that there is no such destination device.

3. Disable PC Firewall

Many users have claimed that the target host unreachable error had been triggered by defective firewall settings. It is also, therefore, suggested that you switch off your laptop firewall and check for the problem.

4. Test the connection

Ensure that the system is on if the target device is open to you. Test and make sure that now the network connection is working. To check the link status, you should unplug and replug the network cable.

How to check if the issue is resolved?

For this, you need to ping the same IP address. However, if the error is occurring from the IP address side, then you must try to ping a different IP Address or domain name. To check whether the ‘destination host unreachable’ error has been solved, run the following command:

Fact Check:

  • Network Cable Connection Issues
  • Destination Host Down
  • Packet Routing Issues in Remote Gateway
  • Corrupted ARP Table
  • Default Gateway Misconfiguration
  • Ensure that the destination computer/device is up.
  • Try to disable Firewall and check for the issue.
  • Perform a traceroute to the destination IP address and check where the problem is occurring.
  • Make sure that the localhost is configured correctly.

Final Words

If you are facing this error while ping testing the network, first, ensure that you have a stable network cable connection. After that, you should look for other ways to solve the error. Resolving ‘destination host unreachable’ error can be an easy task if you know the actual cause of the issue.

Try out the ways we have mentioned above and still if you are not able to resolve it, please let us know in the comment box below and we will help you.

Similar Posts

Facebook Marketplace Not Working – How to Fix?

Facebook Marketplace Not Working – How to Fix?

Wondering why your “Facebook marketplace not working?” Facebook allows people to communicate and encourages consumers to purchase and sell their goods on the Facebook marketplace. It is a trendy platform with millions of users visiting, buying, and selling every month on the market. Besides, Facebook Marketplace helps you discover millions of items to shop and…

Solve Error “Netflix is not compatible with this iPad”

Solve Error “Netflix is not compatible with this iPad”

“Netflix is not compatible with this iPad.” A vexatious error for iOS users currently using older software versions. Well! People still love using older Apple devices, as they still work flawlessly and gives the same rich and smooth experience as a fresh new device. And why not? Old classic models are still in trend in…

This Video is Not Available in Your Country – 3 Ways to Solve Error

This Video is Not Available in Your Country – 3 Ways to Solve Error

Every one of us has particularly faced this error on YouTube “This video is not available in your country” or “The administrator has restricted your region from watching this video.“ Right? You’re just about to watch the video, and now you cannot. It feels so vexatious and repugnant. Don’t bother! We have a few simple ways for…

Fix Error “Instagram couldn’t refresh feed”

Fix Error “Instagram couldn’t refresh feed”

This post has been curated to help all Instagram fanatics overlooking the issue “Instagram couldn’t refresh feed.” Instagram is one of the most popular social media platforms among teenagers around the world. The app boasts features such as images and video sharing, short stories, and reels videos. The platform is highly intuitive and lets you…

Fix Error “Your Device isn’t Compatible with this Version” in Google Play Store

Fix Error “Your Device isn’t Compatible with this Version” in Google Play Store

“Your device isn’t compatible with this version” – a standard error that may occur in Android devices while downloading any app from Google Play Store. Many Android users are facing this error and looking for a way out. But they couldn’t. There are some logical and technical reasons behind the appearance of this error. And…

Fix Error “Unable to access jarfile” in 6 Simple Ways

Fix Error “Unable to access jarfile” in 6 Simple Ways

Here, in this article, you’ll learn how to solve the error “Unable to access jarfile.” Java browser plugins may have been out of favor in the past few years, but Java still runs several programs, and these are enabled with JAR files. A JAR is a receptacle file format used to get bundled into one…

ping response "Request timed out." vs "Destination Host unreachable"

When I ping an IP address, what is the difference between Request timed out and Destination host unreachable returned from the command?

apaderno's user avatar

Suresh Kumar Veluswamy's user avatar

5 Answers 5

Destination Host Unreachable

This message indicates one of two problems: either the local system has no route to the desired destination, or a remote router reports that it has no route to the destination.

If the message is simply «Destination Host Unreachable,» then there is no route from the local system, and the packets to be sent were never put on the wire.

If the message is «Reply From < IP address >: Destination Host Unreachable,» then the routing problem occurred at a remote router, whose address is indicated by the «< IP address >» field.

Request Timed Out

This message indicates that no Echo Reply messages were received within the default time of 1 second. This can be due to many different causes; the most common include network congestion, failure of the ARP request, packet filtering, routing error, or a silent discard.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *