How to test link speed between two hosts
Uses iperf.
Installation
On both hosts:
Start iperf as a server on one of the machines
Run iperf as a client
Example output:
------------------------------------------------------------
Client connecting to IPERF_SERVER_ADDRESS, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.0.4 port 37248 connected with 192.168.0.5 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 1.04 GBytes 893 Mbits/sec
The default port is 5001. Use -p to change it.