网络测试工具 iperf3 的安装与使用

/ 0评 / 0

安装
mac os
brew install iperf3

Ubuntu
Apparently someone named Patrick Domack built a version for Ubuntu Trusty (14.04). Edit: also works on 15.10.

Copy-paste this command and press ENTER:

sudo add-apt-repository "ppa:patrickdk/general-lucid"
Resynchronize the package index files:

sudo apt-get update
Install iperf:

sudo apt-get install iperf3
Invoke iperf version 3:

iperf3 -c iperf.scottlinux.com
cent os/red hat
sudo yum install iperf3

语法
服务端启动
默认使用 5201 端口:iperf3 -s

自定义端口:iperf3 -s -p 12345

客户端连接
如果是默认的 5201 端口:iperf3 -c 123.12.12.3

如果是自定义的端口:iperf3 -c 123.12.12.3 -p 12345

默认是上传数据,如果想测试下载数据: iperf3 -c 123.12.12.3 -p 12345 -R

默认是 TCP 连接,如果想测试 UDP:iperf3 -u -c 123.12.12.3 -p 12345

发表回复

您的电子邮箱地址不会被公开。