1. 常用命令
1.1 启动server端
iperf3 -s -p 端口号
例如 iperf3 -s -p 9000
默认端口为5210
1.2 client测试
iperf3 -c 服务器IP -p 服务器端口
iperf3 -c 192.168.1.60 -p 9000
reference:
Iperf3工具的安装与使用测试案例及各参数_鹏老板的博客-优快云博客_iperf3安装
2. Linux x86环境安装
在Ubuntu环境下验证过的安装脚本:
echo "intall iperf3..."
# 下载
wget https://github.com/esnet/iperf/archive/refs/tags/3.11.zip
unzip 3.11.zip
cd iperf-3.11/
# 编译
./configure
make
make install
# 配置
/sbin/ldconfig
echo "intalled iperf3."
3. Linux arm 环境安装
网上不好找 Linux环境arm版的安装包,aarch-64环境的就更难找了,有几个下载链接还是收费的。
下面是收集到的可以免费下载的安装包:
iPerf - Download iPerf3 and original iPerf pre-compiled binarieshttps://iperf.fr/iperf-download.php
aarch-64版本
aarch64系统安装过程
系统信息:
uname -m = aarch64
uname -r = 4.19.36-vhulk1907.1.0.h1103.eulerosv2r8.aarch64
uname -s = Linux
安装脚本(需要root权限):
# 3.11 版本安装不成功
# wget http://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/i/iperf3-3.11-1.fc37.aarch64.rpm
# wget http://mirror.centos.org/centos/8-stream/AppStream/aarch64/os/Packages/iperf3-3.5-6.el8.aarch64.rpm
wget http://rpmfind.net/linux/centos/8-stream/AppStream/aarch64/os/Packages/iperf3-3.5-6.el8.aarch64.rpm
sudo dnf install iperf3-3.5-6.el8.aarch64.rpm
Reference: