LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-07-2019, 08:07 AM   #1
Geoff_L
Member
 
Registered: Jan 2013
Posts: 42

Rep: Reputation: Disabled
Installing Hamachi kills other network connectivity


Hopefully, this belongs in network connectivity as I suspect the resolution might lie somewhere other than just with Hamachi.

The Raspberry Pi 1B I was using as a Logmein Hamachi gateway died the other day and I'm trying to replace it a Raspberry Pi 3B+ that I built with full version of Rasbian (based on Debian Buster).

I manually configured ethernet and switched of WiFi. Ethernet is configured with a static IP address 192.168.x.x/24 with my router set as the default gateway and with my network DNS server set as the default with Google's 8.8.8.8 as a secondary. IPV6 is disabled. Everything worked. I enabled SSH on the Pi and checked I could remotely log in.

I installed Hamachi thus:
Code:
$ wget https://www.vpn.net/installers/logmein-hamachi_2.1.0.203-1_armhf.deb
$ sudo dpkg -i logmein-hamachi_2.1.0.203-1_armhf.deb
Then configured it with:
Code:
$ sudo hamachi login
$ sudo hamachi attach logmein-account
# on another machine, approve the Pi
$ sudo hamachi do-join network-id password
# on another machine, approve the join request and then configure the network to set the Pi as gateway
I did the above on the 'other machine' via SSH. However, a few minutes after the above, I lost SSH connectivity to the Pi. Returning to the local console on the Pi, I note that all the expected interfaces are up (eth0 and the three associated with hamachi). Pi config shows SSH is still enabled. However, I can't ping or traceroute to external resources (like bbc.co.uk). Doing $ sudo service ssh status shows that ssh is running.

Doing $ sudo dpkg -r logmein-hamachi restores SSH and other networking connectivity. FWIW, this is the second attempt at building this Pi and I had a similar issue with XRDP at the first attempt.

Help! All assistance to sort out this conflict will be gratefully received.
 
Old 10-07-2019, 08:29 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
Quote:
Originally Posted by Geoff_L View Post
However, a few minutes after the above, I lost SSH connectivity to the Pi. Returning to the local console on the Pi, I note that all the expected interfaces are up (eth0 and the three associated with hamachi). Pi config shows SSH is still enabled. However, I can't ping or traceroute to external resources (like bbc.co.uk).
Can you ping an IP address, like 8.8.8.8?

What's the output of ip route?
 
Old 10-07-2019, 09:26 AM   #3
Geoff_L
Member
 
Registered: Jan 2013
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
Can you ping an IP address, like 8.8.8.8?

What's the output of ip route?
I can't ping any external resources (e.g. 8.8.8.8), for that I can't even ping the default router.

I don't like posting my network specifics, but I can't see a way out of it here, so output of ip route follows:
Code:
default via 192.168.42.1 dev eth0 src 192.168.42.127 metric 202 
default via 192.168.42.1 dev ham-br0 proto dhcp src 192.168.42.105 metric 208 
25.0.0.0/8 dev ham0 proto kernel scope link src 25.30.67.249 
169.254.0.0/16 dev ham0 scope link src 169.254.149.217 metric 207 
169.254.0.0/16 dev ham1 scope link src 169.254.96.246 metric 209 
192.168.42.0/24 dev eth0 proto dhcp scope link src 192.168.42.127 metric 202 
192.168.42.0/24 dev ham-br0 proto dhcp scope link src 192.168.42.105 metric 208
I've just noticed that ham-br0 appears to be set via DHCP and also there are two entries for my local network (192.168.42.0) but I thought that the lowest metric would be the default.

Does this give a clue?

Thanks, Geoff
 
Old 10-07-2019, 09:35 AM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
You have the same network (192.168.42.0/24) on two different interfaces. That's not a valid IP configuration.

What does brctl show ham-br0 have to say about the bridge? If eth0 is connected to ham-br0 (which it seems to be), eth0 shouldn't have an IP address at all.
 
Old 10-07-2019, 10:00 AM   #5
Geoff_L
Member
 
Registered: Jan 2013
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
You have the same network (192.168.42.0/24) on two different interfaces. That's not a valid IP configuration.

What does brctl show ham-br0 have to say about the bridge? If eth0 is connected to ham-br0 (which it seems to be), eth0 shouldn't have an IP address at all.
Thanks. I don't seem to have brctl available. Do I need to install a package to get this or is there another way to get the info you asked for?

FWIW, eth0 needs an IP address otherwise the Pi won't be able to access stuff on my local network?

Edited to add: Searching the 'net shows that brctl is part of the bridge-utils package -- but I can't install it because of the network issue I'm trying to resolve!

D'Oh! back to basics ... downloaded the .deb package and copied to the Pi via sneaker mail and installed using dpkg.

brctl shows eth0 and ham1 as the interfaces. I suspect it should be ham0 and ham1 but I've no idea how to confirm this or how to change it!

Thanks again, Geoff

Last edited by Geoff_L; 10-07-2019 at 10:21 AM.
 
Old 10-07-2019, 10:13 AM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
Quote:
Originally Posted by Geoff_L View Post
Thanks. I don't seem to have brctl available. Do I need to install a package to get this or is there another way to get the info you asked for?
I know Debian has this in bridge-utils.
Quote:
Originally Posted by Geoff_L View Post
FWIW, eth0 needs an IP address otherwise the Pi won't be able to access stuff on my local network?
Not if it's connected to a bridge. The IP address should then be moved to the bridge interface.

If this is indeed the reason you're losing network connectivity, ip addr del 192.168.42.127 dev eth0 should make things work again (temporarily, at least), and you should be able to SSH into the box via the address assigned to the bridge.
 
Old 10-07-2019, 10:30 AM   #7
Geoff_L
Member
 
Registered: Jan 2013
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
I know Debian has this in bridge-utils.
Not if it's connected to a bridge. The IP address should then be moved to the bridge interface.

If this is indeed the reason you're losing network connectivity, ip addr del 192.168.42.127 dev eth0 should make things work again (temporarily, at least), and you should be able to SSH into the box via the address assigned to the bridge.
Thanks again. That said, I suspect I won't be able to SSH onto the box with the IP addr of eth0 deleted as the machine I'm trying to connect from is on the 192.168.42.0/24 network. I don't mind trying, but not until I know how to reverse the deletion (ip addr add 192.168.42.127 dev eth0?) Or am I missing something?
 
Old 10-07-2019, 11:04 AM   #8
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
Quote:
Originally Posted by Geoff_L View Post
Thanks again. That said, I suspect I won't be able to SSH onto the box with the IP addr of eth0 deleted as the machine I'm trying to connect from is on the 192.168.42.0/24 network. I don't mind trying, but not until I know how to reverse the deletion (ip addr add 192.168.42.127 dev eth0?) Or am I missing something?
According to your earlier posts, the ham-br0 bridge also has an IP address in the 192.168.42.0/24 network. Try SSHing to that once the address on eth0 is removed.

Adding an IP address requires the CIDR mask to be specified: ip addr add 192.168.48.127/24 dev eth0.

Actually, you should include the CIDR mask when deleting an address as well. Leaving out the mask may still work depending on your version of ip, but it's deprecated and not good practice in any case.
 
Old 10-07-2019, 11:18 AM   #9
Geoff_L
Member
 
Registered: Jan 2013
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
According to your earlier posts, the ham-br0 bridge also has an IP address in the 192.168.42.0/24 network. Try SSHing to that once the address on eth0 is removed.

Adding an IP address requires the CIDR mask to be specified: ip addr add 192.168.48.127/24 dev eth0.

Actually, you should include the CIDR mask when deleting an address as well. Leaving out the mask may still work depending on your version of ip, but it's deprecated and not good practice in any case.
Thanks again. I deleted IP address 192.168.42.127 but to no avail. The system seems to have automatically restored it (probably from one or more configuration files?). Still can't ping out even to the local router or to 8.8.8.8 and can't SSH into the bridge local IP address.
 
Old 10-08-2019, 04:40 AM   #10
Geoff_L
Member
 
Registered: Jan 2013
Posts: 42

Original Poster
Rep: Reputation: Disabled
Sorry to reply to my last post. Further research suggests that the Pi 3B+ is prone to networking issues and so I've decided to abandon trying to use the Pi as a Hamachi gateway, which is a pity as the now dead Pi 1B worked flawlessly with the early version of Hamachi installed back in 2013. I have an old Gigabyte mini-ITX machine that I resurrected by building with Debian 10 and then installed the current Hamachi i386 .deb via dpkg. This worked without issues. However, I'll have to live with the additional power consumption...

Thanks Ser Olmy for trying, much appreciated.

Edited to add:
It turns out that Raspbian Buster has problems with Hamachi v2 armhf and that installing the last version of Raspbian Stretch (i.e. based on Debian Stretch) resolved the issue. I can confirm that the Hamachi works on my Pi 3B+ under Stretch. My thanks to the guys over on the Hamachi Community Forum.

Last edited by Geoff_L; 10-14-2019 at 07:59 PM. Reason: Solution added..
 
  


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
hamachi: /lib/libdl.so.2: version `GLIBC_2.4' not found (required by hamachi) hamac ted_chou12 Linux - Software 1 06-11-2013 02:42 AM
[SOLVED] hamachi /usr/share/hamachi/hamachid: cannot execute binary file ted_chou12 Linux - Software 1 05-27-2013 11:25 AM
xend kills network connectivity on boot slartibartfast99 Linux - Newbie 1 11-10-2010 04:04 AM

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

All times are GMT -5. The time now is 01:02 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