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

安装

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

posted @ 2020-03-20 18:09  leafs99  阅读(4831)  评论(0编辑  收藏  举报