0

I'm having problems pinging my local Ubuntu server (20.04.3 LTS) using my Windows machine. Sometimes it works, but most of the times it returns: Reply from <client ip>: Destination host unreachable. I don't have any problems pinging and SSH'ing from another Linux machine (tested with Raspberry Pi and Android phone).

The logs (/var/log/syslog, /var/log/dmesg, /var/log/kern.log, etc...) don't update while I'm trying to connect. The iptables don't block that client's IP and I haven't modified them.

How can I continue debugging this problem?

3
  • 1
    This is not a problem with your server, but with your windows client apparently
    – Panki
    Aug 26, 2021 at 8:13
  • You need to consider, are the two devices on the same IP network with the same subnet mask? Is either/both using WiFi or are both wired? Have you run up Wireshark on both devices (a) to check the ping packets are leaving the client, (b) that the packets are arriving at the server, (c) that ping replies are leaving the server, and (d) if those reply packets are being seen by the client Aug 26, 2021 at 8:18
  • It turned out to be an ARP problem, Thanks for the suggestion to use Wireshark, it will be useful to diagnose the ARP problem. Aug 26, 2021 at 8:57

1 Answer 1

0

Possible solutions: Switch off the energy savings on your ethernet card. Check your arp table. You can add statically the linux ip into arp table

arp -s <server.ip> <server mac address>

In older cards, check the autonegotiating.

2
  • The server wasn't in the client's ARP table. Pinging the client from the server added a dynamic entry inside the client's ARP table, which solved the problem. I don't know why this isn't happening automatically, but this answers my question, thanks. Aug 26, 2021 at 8:48
  • If you use the arp -s, your windows don't forget the server's ip. (Careful, if the server mac address changed then a new problem occurred :)....)
    – K-attila-
    Aug 26, 2021 at 8:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .