Start a server
iperf -s
Connect a client to run the test
iperf -c <iperf-server-address>
To run iperf server in the background
iperf -s -d
Newer installation via APT provide a systemd service to keep it running as a daemon instead.
systemctl enable --now iperf3.service
Once iperf server is running, TCP/5201 will start listening for incoming connections
The iperf client provides additional configuration parameters that allow the user to modify the characteristics of the test.
To multi-thread the test and run it for a longer duration of time
iperf3 -c -t 300 -P 4
Reverse mode changes the direction the data is traversing the network. By default, the client sends data and the server receives data - this will reverse that behavior
iperf3 -c -R