cheat.sheets:iperf
# iperf
# Network bandwidth measurement tool with client-server functionalities.
# Start an iperf server on the default port (5001)
iperf -s
# Start an iperf server on a specific port (for example, 5201)
iperf -s -p 5201
# Run an iperf client to connect to a server at a specific IP address
iperf -c <server_ip>
# Run an iperf client with a specific bandwidth limit (1 Mbps)
iperf -c <server_ip> -b 1M
# Run an iperf test for a specific duration (10 seconds)
iperf -c <server_ip> -t 10
# Run an iperf test using UDP instead of TCP
iperf -c <server_ip> -u
# Run an iperf test with a specific port (e.g., 5201)
iperf -c <server_ip> -p 5201
# Run a bi-directional bandwidth test (client and then server directions)
iperf -c <server_ip> -d
# Run an iperf test using IPv6
iperf -c <server_ipv6_address> -V
# Generate test report format as JSON
iperf -c <server_ip> --reportstyle C
tldr:iperf
# iperf
# Measure network bandwidth between computers.
# More information: <https://iperf.fr>.
# Run on server:
iperf -s
# Run on server using UDP mode and set server port to listen on 5001:
iperf -u -s -p 5001
# Run on client:
iperf -c server_address
# Run on client every 2 seconds:
iperf -c server_address -i 2
# Run on client with 5 parallel threads:
iperf -c server_address -P 5
# Run on client using UDP mode:
iperf -u -c server_address -p 5001
$
cheat.sh