RE: How to fix 'no route to host' problem

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Joe Lowder
Date:  
To: Main PLUG discussion list
Subject: RE: How to fix 'no route to host' problem
Thanks Rusty, Michael, and all ...

But I think I need a different solution than
"if all else fails" ;)

I have more than a dozen devices on my network
including four "back-up" computers to which I have
been using rsync to copy all of my most important
files on a regular basis. rsync is still working
fine to one of those back-up computers, but it
recently stopped working to 3 of the others and
this is the mystery I need to solve.

I had this problem once before and I think it was
a fairly simple solution, but I can't remember what
it was.

So why would rsync still be working to one of my
backup computers and not working to the other 3?

Searching the net (for 2 days) one suggested solution
was to use apt-get to uninstall and reinstall
openssh-server to that mint 17 computer ... but when I
tried to do that, the result was that no source could be
found to do that reinstall to that computer:::

Could not download all repository indexes

The repository may no longer be available or could not be contacted
because of network problems. If available an older version of the failed
index will be used. Otherwise the repository will be ignored. Check your
network connection and ensure the repository address in the preferences
is correct.

GPG error: http://archive.getdeb.net trusty-getdeb InRelease: Clearsigned
file isn't valid, got 'NODATA' (does the network require authentication?)

Now, it seems that /etc/init.d/sshd is entirely missing.


------------------
On Tue, October 30, 2018 2:21 pm, Carruth, Rusty wrote:
> If all else fails and if you have control over the range of addresses
> that DHCP gives out (at least enough to tell it to leave a few
> un-assigned), you could always force the server to be at a static IP
> address.
>
> That is, either using network manager or whatever method you desire
> (including editing /etc/network/interfaces, see below) and setting it to
> not use DHCP but to have a static address.
>
> Then, if it is alive, it should always be at that IP address. Just make
> sure DHCP never allocates a new host there.
>
> Here’s the syntax for making static in interfaces file:
>
>
> # interfaces(5) file used by ifup(8) and ifdown(8)
> auto lo iface lo inet loopback
>
> auto eth2 iface eth2 inet static address 192.168.0.149 netmask
> 255.255.255.0
>
>
> -------end---
>
>
> You may have to fiddle with <something> to get the name of the Ethernet
> device right (or static), including hacking around with udev rules….
> Especially since eth0 went away recently, being replaced with wonderful
> names like enp3s0… (I understand the logic, but sometimes I want the
> first Ethernet device to be eth0, period. NO funny enp3s0/1/2/3 enp4s1
> stuff… but I digress!)
>
> And, I’m NOT going to even MENTION the totally sick hack of finding the
> actual IP address that the host got from DHCP by using broadcast ping
> from a different host… ;-)
>
> Rusty
>
>
> From: PLUG-discuss [mailto:plug-discuss-bounces@lists.phxlinux.org] On
> Behalf Of Michael Butash
> Sent: Tuesday, October 30, 2018 2:14 PM
> To: PLUG Phoenix List
> Cc:
> Subject: Re: How to fix 'no route to host' problem
>
>
> If you can't ping it, see no arp on your local network, or "no route to
> host", it's not there on that ip any more. Doesn't mean it didn't get
> another ip address different as recommended above to static your dhcp,
> but it's not on that IP any longer.
>
> I like to do "nmap -sP 192.168.1.0/24<http://192.168.1.0/24>" or
> whatever your subnet is there, and see what comes back for what lives
> there, if name resolution is present, or mdns capable, you should see
> names. It probably just got a new lease.
>
> -mb
>
>
> On Tue, Oct 30, 2018 at 7:17 AM Stephen Partington
> <<mailto:cryptworks@gmail.com>> wrote:
> DHCP IP Address reservation or Assignments in your router will be a bit
> odd looking in most home routers, but once you find it very simple. This
> will still vary based on device but an example can be found here.
> https://www.linksys.com/us/support-article?articleNum=135673
>
>
> On Mon, Oct 29, 2018 at 8:21 PM Joe Lowder
> <<mailto:joe@actionline.com>> wrote:
> I still need help to solve this problem:
>
>
> I recently wrote this:
>
>> For many months, I have been using rsync to copy files
>> from one of my computers to two others, and it has worked flawlessly.
>> But
>> today, it quit working and I cannot figure out why and how to correct
>> the problem. Below is the error message I now see:
>>
>> ssh: connect to host 192.168.0.4 port 22: No route to host
>> rsync: connection unexpectedly closed (0 bytes received so far)
>> [sender]
>> rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.0]
>>
>> What do I need to do to correct this problem?
>>
>
> One reply said, "Can you ping it?"
>
>
> Yes, I can, ping the device ip address. Also did these 2 commands:
> d: arp -an
> ? (192.168.0.19) at c4:1c:ff:30:c5:9c [ether] on wlan0
> ? (192.168.0.7) at 10:0b:a9:9a:99:a8 [ether] on wlan0
> ? (192.168.0.1) at 52:b9:e5:c9:b9:cc [ether] on wlan0
> d: ip neighbor
> 192.168.0.19 dev wlan0 lladdr c4:1c:ff:30:c5:9c REACHABLE
> 192.168.0.7 dev wlan0 lladdr 10:0b:a9:9a:99:a8 STALE
> 192.168.0.1 dev wlan0 lladdr 52:b9:e5:c9:b9:cc DELAY
>
>
> But I don't know what to do with the results.
>
>
> Another reply suggested:
>
>> So: Go to the target machine and find out what its
>> IP and MAC are--"/sbin/ifconfig" from the command line
>> will show that info. Then set up your router such that it will always
>> give out 192.168.0.4 to that MAC.
>
> But I don't know how to set my router so that it will
> always give out 192.168.0.4 to that MAC.
>
>


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss