Iperf 报错:read failed: No route to host

调试Cent OS 7.5的系统的IPerf,发现server端,无法打印出来的间隔接受率等信息,client也报错,报错显示如下

[root@localhost ~]# iperf -u -c 192.168.108.61 -i1 -t9999999999 -b 3M -l 1200
------------------------------------------------------------
Client connecting to 192.168.108.61, UDP port 5001
Sending 1200 byte datagrams
UDP buffer size: 10.0 MByte (default)
------------------------------------------------------------
[  3] local 192.168.108.15 port 56937 connected with 192.168.108.61 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec   360 KBytes  2.95 Mbits/sec
[  3]  1.0- 2.0 sec   364 KBytes  2.99 Mbits/sec
[  3]  2.0- 3.0 sec   366 KBytes  3.00 Mbits/sec
[  3]  3.0- 4.0 sec   364 KBytes  2.99 Mbits/sec
[  3]  4.0- 5.0 sec   366 KBytes  3.00 Mbits/sec
[  3]  5.0- 6.0 sec   364 KBytes  2.99 Mbits/sec
[  3]  6.0- 7.0 sec   366 KBytes  3.00 Mbits/sec
[  3]  7.0- 8.0 sec   364 KBytes  2.99 Mbits/sec
[  3]  8.0- 9.0 sec   366 KBytes  3.00 Mbits/sec
[  3]  9.0-10.0 sec   364 KBytes  2.99 Mbits/sec
[  3] 10.0-11.0 sec   366 KBytes  3.00 Mbits/sec
[  3] 11.0-12.0 sec   364 KBytes  2.99 Mbits/sec
[  3] 12.0-13.0 sec   366 KBytes  3.00 Mbits/sec
[  3] 13.0-14.0 sec   364 KBytes  2.99 Mbits/sec
[  3] 14.0-15.0 sec   366 KBytes  3.00 Mbits/sec
^C[  3]  0.0-15.1 sec  5.39 MBytes  2.99 Mbits/sec
[  3] Sent 4734 datagrams
read failed: No route to host

[  3] WARNING: did not receive ack of last datagram after 5 tries.


server显示异常:

Iperf 报错:read failed: No route to host_第1张图片

经过长久分析发现是server端的 防火墙导致的,关闭防火墙以后即可避免 

关闭防火墙:

[root@localhost data1]# 
[root@localhost data1]# firewall-cmd --state
running                        ------------------查看显示状态
[root@localhost data1]# systemctl stop firewalld.service       ---关闭防火墙
[root@localhost data1]# firewall-cmd --state
not running     ------------已关闭
[root@localhost data1]# 

再次运行工具,查看正常:

[root@localhost data1]# iperf -s -u -i1
------------------------------------------------------------
Server listening on UDP port 5001
Receiving 1470 byte datagrams
UDP buffer size: 10.0 MByte (default)
------------------------------------------------------------
[  3] local 192.168.108.61 port 5001 connected with 192.168.108.15 port 50714
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  3]  0.0- 1.0 sec   366 KBytes  3.00 Mbits/sec   0.008 ms    0/  312 (0%)
[  3]  1.0- 2.0 sec   367 KBytes  3.00 Mbits/sec   0.019 ms    0/  313 (0%)
[  3]  2.0- 3.0 sec   366 KBytes  3.00 Mbits/sec   0.011 ms    0/  312 (0%)
[  3]  3.0- 4.0 sec   367 KBytes  3.00 Mbits/sec   0.022 ms    0/  313 (0%)
[  3]  4.0- 5.0 sec   366 KBytes  3.00 Mbits/sec   0.004 ms    0/  312 (0%)
[  3]  5.0- 6.0 sec   367 KBytes  3.00 Mbits/sec   0.004 ms    0/  313 (0%)
[  3]  6.0- 7.0 sec   366 KBytes  3.00 Mbits/sec   0.015 ms    0/  312 (0%)
[  3]  7.0- 8.0 sec   367 KBytes  3.00 Mbits/sec   0.015 ms    0/  313 (0%)

你可能感兴趣的:(Iperf 报错:read failed: No route to host)