网络测试工具 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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM