-
No route to host
Hello all,
I have a question:
I have two virtual machine, and I'm trying to test the connection between them and also their speed. Vm1 is listening on port 12345 by following command:
[root vm1 ~]# nc -l 12345 > /dev/null
and vm2 is trying to connect with the following command and result is shown:
[root vm2 ~]# dd if=/dev/zero bs=16000 count=50000 | nc -v 192.168.122.193 12345
nc: connect to 192.168.122.193 port 12345 (tcp) failed: No route to host
Any help is appreciated.
-
Hi and welcome
1) What type of network did you choose for the virtualized NICs? bridged, internal, host only, NAT?
2) Inside the VMs, did you use IPs of the same network?
3) Just to be sure: 192.168.122.193 is an IP of vm1?
Also there are a few tools, that benchmark network (iperf, netperf, nttcp). No need to build it yourself via netcat.
-
OK, after searching a lot, finally I solved the problem. . I will explain it here, for others who have the same problem.
The problem was firewall, with #chkconfig iptables off still firwall was working.
So fo turning off the firewall, I execute:
Code:
# service ip6tables save
# service ip6tables stop
# chkconfig ip6tables off
And then in vm1:
Code:
[root vm1 ~]# nc -l 12345 > /dev/null
and in vm2:
Code:
[root vm2 ~]# dd if=/dev/zero bs=16000 count=50000 | nc -v 192.168.122.193 12345
Connection to 192.168.122.193 12345 port [tcp/italk] succeeded!
50000+0 records in
50000+0 records out
800000000 bytes (800 MB) copied, 8.27853 s, 96.6 MB/s