Score:0

Ping to a machine on LAN with hostname fails but ssh works

th flag

I have a Lenovo Thinkpad and a NVIDIA Jetson Xavier NX, both connected over wifi to a Fritzbox 7590. The Thinkpad has Ubuntu 20.04 LTS installed on it. I am not sure which is the version Jetpack installed on the NVIDIA Jetson Xavier NX but running lsb_release -a gives output Ubuntu 18.04.6 LTS. I have assigned the hostname ritvik-nx to the NVIDIA Jetson Xavier NX and compile to the Thinkpad.

I get the following output when I run the command on my Thinkpad: ping ritvik-nx

PING ritvik-nx.fritz.box (192.168.188.61) 56(84) bytes of data.
From compile.fritz.box (192.168.188.20) icmp_seq=1 Destination Host Unreachable
From compile.fritz.box (192.168.188.20) icmp_seq=2 Destination Host Unreachable
From compile.fritz.box (192.168.188.20) icmp_seq=3 Destination Host Unreachable
From compile.fritz.box (192.168.188.20) icmp_seq=4 Destination Host Unreachable
From compile.fritz.box (192.168.188.20) icmp_seq=5 Destination Host Unreachable

The address it is trying to ping to is incorrect. The Fritzbox has assigned the IP Address 192.168.188.57 to the Jetson Xavier NX. Why is it picking the incorrect address? The /etc/hosts on my Thinkpad does not contain any entry for the NVIDIA Jetson Xavier NX.

It is important to point out that the ssh seems to work. Running the command on my Thinkpad: ssh username@ritvik-nx opens up a new ssh session with the NVIDIA Jetson Xavier NX.

ritvik.ranadive avatar
th flag
so i found out what was happening here...i guess at some point the NVIDIA Jetson Xavier NX had been connected to the Fritzbox with an ethernet cable (say at time=t1 when it had been assigned the IP Address: 192.168.188.61) and now was connected over wifi (say at time=t2 when it is assigned the IP Address 192.168.188.57). In between t1 and t2, the Fritzbox had not been rebooted and I guess the DNS was still returning the old address... Not sure if this was the problem to begin with but it is not occuring any more after rebooting the Fritzbox...
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.