- In order to use iperf3, it must be initially installed through:
yum -y install iperf3
- iperf3 works using two servers, one client and one server to test the network bandwidth and performance.
- To invoke iperf3 on the client, which is the one receiving the data, run the following command.
iperf3 -i 2 -s
- The -i flag tells iperf to listen in intervals of, in this case, 2 seconds. This can be changed to whatever interval you wish. The -s flag tells this server to act as a listening server.
- On another server, you must invoke the iperf3 command to send out data to the receiving server. In order to do so use the following command, while adding and changing flags as needed.
iperf3 -i 2 -t 30 -b 10 -c 192.168.1.40
- The -i 2 flag tells the server to send out data in intervals of 2 seconds.
- The -t 30 flag tells iperf3 to run for 30 seconds
- The -b 10 flag tells the server to use a maximum bandwidth of 10Mbps
- The -c 192.168.1.40 flag tells the server where the listening client is