LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-17-2019, 04:17 AM   #1
penyuan
Member
 
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 177

Rep: Reputation: 18
Question ZeroTier nodes on same network give "No route to host" errors


Hello, I've been using the zerotier-one package installed on my Linux systems to connect them into a ZeroTier network which I manage at ZeroTier Central. A typical use case is to SSH from system A to system B.

However, for the past few days all attempts at connection between these systems fail. For example, when ssh-ing from system A to B, I get a "No route to host error" on the commandline. I've checked `systemctl status zerotier-one` on both systems which shows no problems, the network view at ZeroTier Central shows both systems as ONLINE with the correct IPs, the zerotier-cli listnetworks command shows the "OK" status, and ifconfig on both systems also show that they got the correct IPs.

How can I troubleshoot this? Thanks.
 
Old 08-18-2019, 01:07 PM   #2
permaroot
Member
 
Registered: Aug 2019
Location: Arden, NC
Distribution: Arch Linux
Posts: 129

Rep: Reputation: 47
Quote:
Originally Posted by penyuan View Post
Hello, I've been using the zerotier-one package installed on my Linux systems to connect them into a ZeroTier network which I manage at ZeroTier Central. A typical use case is to SSH from system A to system B.

However, for the past few days all attempts at connection between these systems fail. For example, when ssh-ing from system A to B, I get a "No route to host error" on the commandline. I've checked `systemctl status zerotier-one` on both systems which shows no problems, the network view at ZeroTier Central shows both systems as ONLINE with the correct IPs, the zerotier-cli listnetworks command shows the "OK" status, and ifconfig on both systems also show that they got the correct IPs.

How can I troubleshoot this? Thanks.
Have you only tried SSH? Can you ping from A to B?
 
1 members found this post helpful.
Old 08-23-2019, 05:46 AM   #3
penyuan
Member
 
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 177

Original Poster
Rep: Reputation: 18
Question

Quote:
Originally Posted by permaroot View Post
Have you only tried SSH? Can you ping from A to B?
Thank you @permaroot. I tried pinging from A to B and vice versa, and all pings failed with:

Code:
Destination unreachable: Address unreachable
Looks like the two aren't reaching each other at all? This is strange because from the online ZeroTier Central dashboard, both nodes show up as "online".... Anything else I can do to troubleshoot this? Thank you.
 
Old 08-23-2019, 10:04 AM   #4
permaroot
Member
 
Registered: Aug 2019
Location: Arden, NC
Distribution: Arch Linux
Posts: 129

Rep: Reputation: 47
If it worked before I wouldn’t think it would be your firewall but I would have a look at your settings and make sure the icmp requests and ssh connections aren’t being blocked by iptables or whatever firewall you use. I am not too familiar with zerotier so I can’t speak as to its configuration.
 
1 members found this post helpful.
Old 08-24-2019, 01:46 PM   #5
penyuan
Member
 
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 177

Original Poster
Rep: Reputation: 18
Question

Quote:
Originally Posted by permaroot View Post
If it worked before I wouldnít think it would be your firewall but I would have a look at your settings and make sure the icmp requests and ssh connections arenít being blocked by iptables or whatever firewall you use. I am not too familiar with zerotier so I canít speak as to its configuration.
Apparently my firewall settings are fine and are not blocking any of this, which makes sense because they've always worked until now...

I tried to ping a few more times this week, and occasionally it works but with up to 70% packet loss!

I also tried the "zerotier-cli peers" command to list peers on nodes A and B, and they both show up in the list. However, the connection type is listed as "RELAY" rather than "DIRECT". Not sure if that's the culprit?

Since client A is mobile, I've moved it to different places with different Internet connections, but that didn't help with any of the above....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Why static routes set using 'ip route add' and 'route add' commands are not used for routing packets within the same network? kanak@tetcos.com Linux - Networking 7 04-25-2017 05:52 AM
[SOLVED] How many LQ users do you have to give "Rep" to, before you can give the same LQ users more "Rep"? jsbjsb001 LQ Suggestions & Feedback 3 04-17-2017 04:38 PM
Setting up Kickstart server RHEL 6.5 for compute nodes, GPU nodes and PHI nodes sho1sho1 Red Hat 3 06-23-2015 04:20 PM
"No route to Host" on the same network? gplus Linux - Networking 4 06-21-2006 01:00 PM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration