HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

iperf — Measure network bandwidth between computers. More information: <https://iperf.fr/iperf-doc.php>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
bandwidthcommandbetweennetworkclimeasureiperfcomputers

Problem

How to use the iperf command: Measure network bandwidth between computers. More information: <https://iperf.fr/iperf-doc.php>.

Solution

iperf — Measure network bandwidth between computers. More information: <https://iperf.fr/iperf-doc.php>.

Run on server:
iperf {{[-s|--server]}}


Run on server using UDP mode and set server port to listen on 5001:
iperf {{[-u|--udp]}} {{[-s|--server]}} {{[-p|--port]}} {{5001}}


Run on client:
iperf {{[-c|--client]}} {{server_address}}


Run on client every 2 seconds:
iperf {{[-c|--client]}} {{server_address}} {{[-i|--interval]}} {{2}}


Run on client with 5 parallel threads:
iperf {{[-c|--client]}} {{server_address}} {{[-P|--parallel]}} {{5}}


Run on client using UDP mode:
iperf {{[-u|--udp]}} {{[-c|--client]}} {{server_address}} {{[-p|--port]}} {{5001}}

Code Snippets

Run on server

iperf {{[-s|--server]}}

Run on server using UDP mode and set server port to listen on 5001

iperf {{[-u|--udp]}} {{[-s|--server]}} {{[-p|--port]}} {{5001}}

Run on client

iperf {{[-c|--client]}} {{server_address}}

Run on client every 2 seconds

iperf {{[-c|--client]}} {{server_address}} {{[-i|--interval]}} {{2}}

Run on client with 5 parallel threads

iperf {{[-c|--client]}} {{server_address}} {{[-P|--parallel]}} {{5}}

Context

tldr-pages: common/iperf

Revisions (0)

No revisions yet.