[iperf] Testing the Network Speed Between Two Machines in 4 Steps

Written by peterchang_82818 | Published 2018/03/22
Tech Story Tags: iperf | network | testing | bandwidth | network-speed

TLDRvia the TL;DR App

[iperf] Testing the Network Speed Between Two Machines in 4 Steps

How do you test the network speed between two boxes?

iPerf is a tool for active measurements of the maximum achievable bandwidth on IP networks (by iperf.fr).

Using Iperf is simple, run one instance on a server (receiving client) with the -s option and another instance on the testing client (sender) with the -c option.

1. Install (Server Linux)

$ wget http://sourceforge.net/projects/iperf/files/iperf-2.0.5.tar.gz/download

$ tar -xzvf iperf-2.0.5.tar.gz

2. Install (Client MAC)

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

$ brew install iperf

3. Run (Server Linux)

iperf -s — this will then start the server, listening to TCP port 5001 by default. You can change to any port you like (by cjcott01).

$ ./iperf-2.0.5/src/iperf -s

4. Run (Client Mac)

iperf -c 111.222.333.444 which is the ip address of the listening server (by cjcott01).

$ iperf -c 111.222.333.444 //target ip

Reference

https://iperf.fr/iperf-download.php#fedora

https://askubuntu.com/questions/7976/how-do-you-test-the-network-speed-between-two-boxes

https://iperf.fr/

https://travelingpacket.com/2014/04/15/iperf-for-bandwidth-testing/


Published by HackerNoon on 2018/03/22