Installing iperf3
Based on your operating system, choose the method for your system below:
CentOS 7.5:# yum install -y iperf3
Red Hat 8:# dnf install iperf3
Ubuntu 18.04:# apt install -y iperf3
Windows Server 2022:
Download the current 64-bit version for Windows from https://iperf.fr/iperf-download.php and extract the zip file
Using iperf3
iperf3 needs to be installed on both ends of the connection you are testing.
- On one of the machines, start an iperf3 server. We will call this Machine A:
$ iperf3 --server
- On the other machine (Machine B) start an iperf3 client, and include the IP address of Machine A:
$ iperf3 --client 10.0.0.1
For accuracy, tests should run for at least 30 seconds. You can specify the test time on the client side with:
$ iperf3 --client 10.0.0.1 --time 30
The direction of testing can also be reversed with the "R" flag:
$ iperf3 --client 10.0.0.1 --time 30 -R
Other useful iperf3 examples:
$ iperf3 --client 10.0.0.1 --set-mss 1350 (Specify mss)
$ iperf3 --client 10.0.0.1 --file /tmp/1g.img (Specify a file to test I/O)
$ iperf3 --client 10.0.0.1 --verbose (More verbosity)
$ iperf3 --client 10.0.0.1 --bitrate x (Specify test bits/sec)
Comments
0 comments
Article is closed for comments.