apt install iperf
# iperf --version
iperf version 2.0.10 (2 June 2018) pthreads
- 服务端
# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 128 KByte (default)
------------------------------------------------------------
- 客户端
iperf -c 服务端ip
# iperf -c 192.168.1.100
------------------------------------------------------------
Client connecting to 192.168.1.100, TCP port 5001
TCP window size: 2.50 MByte (default)
------------------------------------------------------------
[ 3] local 192.168.1.102 port 51788 connected with 192.168.1.100 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 996 MBytes 835 Mbits/sec
参考: