iPerf commands on the command line

Table 1. Overview of iPerf options
Command Description
iperf [-s|-c <Host>] [-u] [-p <Port>] [-B <Interface>] [-c] [-b [<Bandw>/]<Bandw>[kKmM]] [-l <Length>] [-t <Time>] [-d] [-r] [-L <Port>] [-h] Starts iPerf on the device in order to perform a bandwidth measurement with an iPerf2 remote station. Possible arguments are:
  • Client/server
    • -u, --udp: Uses UDP instead of TCP.
    • -p, --port <Port>: Connects with or expects data packets on this port (default: 5001).
    • -B, --bind <Interface>: Permits the connection only via the specified interface (IP address or interface name).
  • Server specific
    • -s, --server: Starts iPerf in server mode and waits for an iPerf client to contact it.
  • Client specific
    • -c, --client <Host>: Starts iPerf in client mode and connects with the iPerf server <Host> (IP address or DNS name).
    • -b, --bandwidth [<Bandw>/]<Bandw>{kKmM}: Limit the [down]/up-stream bandwidth when analyzing a UDP connection. This Is specified as kilobytes (kK) or megabytes (mM) per second (default: 1 Mbps).
    • -l, --len <Length>: Sets the length of the UDP data packets.
    • -t, --time <Time>: Sets the duration of the connection in seconds (default: 10 seconds).
    • -d, --dualtest: The test is bidirectional: the iPerf server and client send and receive at the same time.
    • -r, --tradeoff: The test is sequential: the iPerf server and client send and receive one after the other.
    • -L, --listenport <Port>: Specifies the port where the device in bidirectional mode expects to receive data packets from the remote iPerf server (default: 5001).
  • Miscellaneous
    • -h, --help: Outputs the help text.