Hamachi is used or setup VPN and connect system with each other using vpn network. For this tutorial I have already created hamachi network from its web interface and get a network id and connected a windows system with this network. This tutorial will help you to add Linux machine to this existing network and communicate other systems ( windows + linux ) on this network.
Windows Client IP:
Linux Client IP:
Step 1: Install Required Packages
For installing hamachi on RHEL/CentOS system, you need to have redhat-lsb package installed. If you don’t have already install it using following command.
Step 2: Download LogMeIn ( Hamachi) and Install
Click here to download latest logmein-hamachi rpm file from logmein official site and install it on your system or just use below commands
# wget https://secure.logmein.com/labs/logmein-hamachi-22.214.171.124-1.i486.rpm # rpm
Start Hamachi Service using hamachi init service
Step 3: Join Hamachi Existing Network
After installing hamachi, let’s join to existing network. But it required to be logged in first. There are no need of any login credentials for it, just use following command.
hamachi loginLogging in .......... ok
Now use below command to join the network. 181-585-285 is the LogMeIn-Hamachi network id.
hamachi join 181-585-285Password: Joining 181-585-285 .. ok
Now you have successfully joind to existing network.
Step 4: Check Hamachi Status and Details
To check the ip address, hamachi client id and other details about your system just type command ‘
version : 126.96.36.199 pid : 20578 status : logged in client id : 134-582-152 address : 188.8.131.52 2620:9b::1947:bc4c nickname : svr1.tecadmin.net lmi account: -
To check the current joind network and other details about that network just use following command
# hamachi list
Let’s try to ping to windows client.
# ping 184.108.40.206 -c 4
PING 220.127.116.11 (18.104.22.168) 56(84) bytes of data. 64 bytes from 22.214.171.124: icmp_seq=1 ttl=128 time=1.88 ms 64 bytes from 126.96.36.199: icmp_seq=2 ttl=128 time=2.15 ms 64 bytes from 188.8.131.52: icmp_seq=3 ttl=128 time=1.56 ms 64 bytes from 184.108.40.206: icmp_seq=4 ttl=128 time=1.63 ms --- 220.127.116.11 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3010ms rtt min/avg/max/mdev = 1.563/1.806/2.150/0.237 ms
The above output showing that system is successfully communicating with windows client using hamachi network.