LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2024, 12:03 AM   #1
jonshaw199
LQ Newbie
 
Registered: Mar 2024
Location: Grass Valley, CA
Posts: 8

Rep: Reputation: 0
Ping Issue Over LAN - "Destination Host Unreachable"


Hello! I am running into an issue when pinging my desktop PC from my laptop (Lenovo X1 Carbon).

- Both machines are running Ubuntu 22.04
- Both machines are connected using wifi
- The issue starts to happen after I close my laptop lid (or click "suspend"), and then open the lid back up

Things work fine at first and I get a response:

Code:
PING 192.168.1.12 (192.168.1.12) 56(84) bytes of data.
64 bytes from 192.168.1.12: icmp_seq=1 ttl=64 time=7.53 ms
64 bytes from 192.168.1.12: icmp_seq=2 ttl=64 time=8.14 ms
Then, when I close the lid on my laptop, reopen it, and try to ping again, I get a "Destination Host Unreachable" and "No route to host" error:

Code:
PING 192.168.1.12 (192.168.1.12) 56(84) bytes of data.
From 192.168.1.14 icmp_seq=1 Destination Host Unreachable
ping: sendmsg: No route to host
However, I can ping other machines on my network without an issue after opening the lid (i.e. Windows PC, TV, etc.). And I can ping my laptop from my desktop at this point too (the other direction). When I try the ping in the other direction like this, it actually fixes the issue and my laptop can ping my desktop again afterwards!

Any help would be greatly appreciated. My ultimate goal here is to remote into my desktop PC from my laptop. Thanks in advance, Jon.
 
Old 03-04-2024, 08:57 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,328
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
A traceroute might shed some more light on the problem.
 
Old 03-04-2024, 09:35 PM   #3
jonshaw199
LQ Newbie
 
Registered: Mar 2024
Location: Grass Valley, CA
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the suggestion. I tried the traceroute command before and after suspend:

Code:
jon@jon-thinkpad:~$ traceroute 192.168.1.12
traceroute to 192.168.1.12 (192.168.1.12), 30 hops max, 60 byte packets
 1  192.168.1.12 (192.168.1.12)  9.752 ms  9.683 ms  9.708 ms
jon@jon-thinkpad:~$ traceroute 192.168.1.12
traceroute to 192.168.1.12 (192.168.1.12), 30 hops max, 60 byte packets
 1  jon-thinkpad (192.168.1.14)  3048.633 ms !H  3048.422 ms !H  3048.359 ms !H
 
Old 03-04-2024, 09:36 PM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,452
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by jonshaw199 View Post
Then, when I close the lid on my laptop, reopen it, and try to ping again, I get a "Destination Host Unreachable" and "No route to host" error:
Most laptops will disconnect from the WiFi when you close the lid, in order to save power. If you want to prevent this from happening you could try connecting an external screen.
Quote:
Originally Posted by jonshaw199 View Post
My ultimate goal here is to remote into my desktop PC from my laptop. Thanks in advance, Jon.
Are you using KDE? If so, then you can try KRFB/KRDC. It works well.
 
Old 03-04-2024, 09:54 PM   #5
jonshaw199
LQ Newbie
 
Registered: Mar 2024
Location: Grass Valley, CA
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rkelsen View Post
Most laptops will disconnect from the WiFi when you close the lid, in order to save power. If you want to prevent this from happening you could try connecting an external screen.

Are you using KDE? If so, then you can try KRFB/KRDC. It works well.
That makes sense, but I need my laptop for on-the-go and after I close and reopen the lid once, then I can no longer ping or remote into my desktop PC (I can still access the internet and reach other local devices though). But until then, I don't have issues and I can remote into it. Also, I'm currently using gnome and Remmina but I will check those out! Very new to linux in general.
 
Old 03-06-2024, 02:32 AM   #6
___
Member
 
Registered: Apr 2023
Posts: 139
Blog Entries: 1

Rep: Reputation: Disabled
Maybe try: ip r ; arp -a # while not working vs. working
Quote:
However, I can ping other machines on my network without an issue after opening the lid (i.e. Windows PC, TV, etc.). And I can ping my laptop from my desktop at this point too (the other direction). When I try the ping in the other direction like this, it actually fixes the issue and my laptop can ping my desktop again afterwards!
Maybe wait a minute for network to start back up. Check logs/dmesg/journalctl ...
 
Old 03-06-2024, 11:18 PM   #7
jonshaw199
LQ Newbie
 
Registered: Mar 2024
Location: Grass Valley, CA
Posts: 8

Original Poster
Rep: Reputation: 0
Ok thanks, I will try that when I get home on Friday and report back.
 
Old 03-07-2024, 03:27 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Bios may have settings for what happens on lid close.
 
Old 03-08-2024, 06:03 AM   #9
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,796

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Asymmetric routing can cause such a problem.
Does your desktop PC have two networks configured?
 
Old 03-09-2024, 02:50 PM   #10
jonshaw199
LQ Newbie
 
Registered: Mar 2024
Location: Grass Valley, CA
Posts: 8

Original Poster
Rep: Reputation: 0
Ok I'm back in town and continuing this investigation. I will look into each of these suggestions and get back to you.

I will say that I'm starting to wonder if the problem lies with the desktop computer (the one I'm trying to connect to; never had issues with the laptop and I just built the desktop). I'm experiencing a number of seemingly intermittent network issues, maybe unrelated though. For example, I disabled ssid broadcasting on the router (I guess that means "hidden"), and I have to repeatedly try connecting until it finally succeeds. This PC has a TUF GAMING B550-PLUS WIFI II motherboard w/ a MT7921 wifi card; also my kernel version is 6.5.0-25-generic if that matters. I wouldn't be surprised if a wired connection would help, but I'm hoping I don't have to do that.
 
Old 03-09-2024, 02:53 PM   #11
jonshaw199
LQ Newbie
 
Registered: Mar 2024
Location: Grass Valley, CA
Posts: 8

Original Poster
Rep: Reputation: 0
Also, I realize this might be the wrong forum for this question. But it's really hard for me to say; don't even know where to start on this. Thanks everyone for the input.
 
Old 03-09-2024, 04:44 PM   #12
jonshaw199
LQ Newbie
 
Registered: Mar 2024
Location: Grass Valley, CA
Posts: 8

Original Poster
Rep: Reputation: 0
I thought I had updated everything on the desktop, but the software updates dialog JUST popped up and I noticed some firmware changes specifically for this wifi card. So I proceeded with the updates, repeated the suspend/awake process about 10 times, and I'm no longer able to reproduce the issue. I can ping and remote into the desktop from my laptop every time. Maybe this isn't related and it's just a coincidence, but it seems like a good sign...

I took a picture but keep getting an error on upload. This was one of the updates in the list that caught my eye.
 
Old 03-09-2024, 04:58 PM   #13
jonshaw199
LQ Newbie
 
Registered: Mar 2024
Location: Grass Valley, CA
Posts: 8

Original Poster
Rep: Reputation: 0
What I don't understand is why suspending/awaking the laptop would make a difference if the issue did lie with the desktop firmware. Maybe this is just a coincidence of some sort. Will do a bit more testing...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ping to Honeyd virtual host replying Destination Host Unreachable Doejohn Linux - Networking 2 12-22-2023 10:43 AM
LFS9.0 Book==> Network Issue: Destination Host Unreachable on ping 8.8.8.8 kc98 Linux From Scratch 5 02-09-2020 05:49 PM
iptables - Reply Forwarding Error / Destination unreachable (Host unreachable) keflex87 Linux - Networking 1 05-12-2015 12:03 AM
Network is Unreachable/Unknown host/Destination Host Unreachable [Debian] denv Linux - Networking 4 03-27-2014 02:58 PM
tftp - "Destination Unreachable" due to "Port Unreachable" renjithgopal Linux - Security 5 07-24-2003 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration