Date: 2021mar20
Updated: 2024jun12
OS: Linux
Q. Linux: Measure bandwidth between two machines
A. Use iperf
To install (RedHat/Fedora/CentOS):
dnf install iperf
On both client and server.
Open TCP port 5001 on the server.
You may need to open the firewall.
On the server run:
iperf -s
On the client run:
iperf -c <server-domain-name or IP-address>
It takes under a minute to run a test and the results are displayed
on both machines.
You can change the port with -p <port>
And there are many other options.