Thursday, May 28, 2015

How to test the network bandwidth between two machines on Linux

1. Install iperf

on Ubuntu:
sudo apt-get install iperf
on Centos:
sudo yum install -y iperf

2.On one machine (haha.google.com)

iperf -d -s

3. On the other machine

iperf -d -c haha.google.com