How to install iPerf speed measurement software in centos7?
Iperf is a network performance testing tool. Iperf can test maximum TCP and UDP bandwidth performance, has a variety of parameters and UDP characteristics, can be adjusted as needed, and can report bandwidth, delay jitter, and packet loss.
Use environment: VPS is a standard installation of the centos7_64-bit system. If prompted without wget, rpm, yum commands, please install it yourself. The iperf of the system update is 3.1.3. The default installation is 2.0.
Install iperf:
[root@fq ~] # wget https://iperf.fr/download/fedora/iperf3-3.1.3-1.fc24.x86_64.rpm
-- 2020-03-01 11 Fraser 10 Rose 00 muri-https://iperf.fr/download/fedora/iperf3-3.1.3-1.fc24.x86_64.rpm
Resolving iperf.fr (iperf.fr)... 213.246.63.45, 2a00:c70:1:213:246:63:45:2
Connecting to iperf.fr (iperf.fr) | 213.246.63.45 |: 443. Connected.
HTTP request sent, awaiting response... 200 OK
Length: 78686 (77K) [application/x-redhat-package-manager]
Saving to: 'iperf3-3.1.3-1.fc24.x86 / 64.rpm'
78686 144KB/s in 0.5s
2020-03-01 11:10:01 (KB/s)-'iperf3-3.1.3-1.fc24.x86' 64.rpm' saved [78686hand 78686]
[root@fq] # rpm-Uvh iperf3-3.1.3-1.fc24.x86_64.rpm
Preparing... # # [100%]
Updating / installing...
1:iperf3-3.1.3-1.fc24 # #
[root@fq ~] # yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Base: centos.cs.nctu.edu.twelrepo: mirror-hk.koddos.netelrepo-kernel: mirror-hk.koddos.netepel: fedora.cs.nctu.edu.twepel-debuginfo: fedora.cs.nctu.edu.twextras: mirror.upsi.edu.myupdates: mirror.its.sfu.ca
Resolving Dependencies
-> Running transaction check
-> Package iperf3.x86_64 0RU 3.1.3-1.fc24 will be updated
-> Package iperf3.x86_64 0RU 3.1.7-2.el7 will be an update
-> Finished Dependency Resolution
Dependencies Resolved
=
Package Arch Version Repository Size
=
Updating:
Iperf3 x8631 64 3.1.7-2.el7 base 79k
Transaction Summary
=
Upgrade 1 Package
Total download size: 79 k
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because / usr/bin/applydeltarpm not installed.
Iperf3-3.1.7-2.el7.x86_64.rpm | 79 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Updating: iperf3-3.1.7-2.el7.x86_64 1max 2
Cleanup: iperf3-3.1.3-1.fc24.x86_64 2max 2
Verifying: iperf3-3.1.7-2.el7.x86_64 1max 2
Verifying: iperf3-3.1.3-1.fc24.x86_64 2max 2
Updated:
Iperf3.x86_64 0RO 3.1.7-2.el7
Complete!
[root@fq ~] # yum install iperf
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Base: centos.cs.nctu.edu.twelrepo: mirror-hk.koddos.netelrepo-kernel: mirror-hk.koddos.netepel: mirrors.aliyun.comepel-debuginfo: mirrors.aliyun.comextras: mirror.upsi.edu.myupdates: mirror.kku.ac.th
Resolving Dependencies
-> Running transaction check
-> Package iperf.x86_64 0RU 2.0.13-1.el7 will be installed
-> Finished Dependency Resolution
Dependencies Resolved
=
Package Arch Version Repository Size
=
Installing:
Iperf x8631 64 2.0.13-1.el7 epel 86k
Transaction Summary
=
Install 1 Package
Total download size: 86 k
Installed size: 185 k
Is this ok [y/d/N]: y
Downloading packages:
Iperf-2.0.13-1.el7.x86_64.rpm | 86 kB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing: iperf-2.0.13-1.el7.x86_64 1 Compact 1
Verifying: iperf-2.0.13-1.el7.x86_64 1 Compact 1
Installed:
Iperf.x86_64 0VOR 2.0.13-1.el7
Complete!
[root@fq] # iperf-v
Iperf version 2.0.13 (21 Jan 2019) pthreads
[root@fq] # iperf-s-uServer listening on UDP port 5001
Receiving 1470 byte datagrams
UDP buffer size: 208 KByte (default)
[3] local 10.140.0.3 port 5001 connected with 182.120.21.91 port 64702
[ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[3] 0.0-60.3 sec 75.3 MBytes 10.5 Mbits/sec 15.785 ms 456497Universe 510203 (89%)