系统相关
首页 > 系统相关> > linux 测速命令 speed-test 以及 iperf3

linux 测速命令 speed-test 以及 iperf3

作者:互联网

文章目录

公网测速 与 局域网测速 差别

局域网点对点 测速吞吐 推荐 iperf3 需要 自建 测速服务器
公网 测速 直接 联通 运营商 进行测速即可

speed-test 直接 公网测速


store_url='registry.cn-hangzhou.aliyuncs.com/mkmk/all'
docker run -it ${store_url}:speed-cli   /usr/local/bin/speedtest-cli

-->
[root@kk-test ~]# docker run -it ${store_url}:speed-cli   /usr/local/bin/speedtest-cli
Retrieving speedtest.net configuration...
Testing from China Telecom (27.18.136.158)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by 湖北联通5G (Wuhan) [1.65 km]: 11.559 ms
Testing download speed................................................................................
Download: 276.47 Mbit/s
Testing upload speed......................................................................................................
Upload: 46.64 Mbit/s

iperf3 局域网测速

启动服务器


docker run -it --rm -p 5201:5201  --name iperf3_server networkstatic/iperf3  -s


docker run -itd  -p 5201:5201  --name iperf3_server networkstatic/iperf3  -s


启动 测试机


#  -c  server_ip
iperf3  -c 192.168.19.10

iperf3 -c 172.20.143.222

# client server
# if you use ubuntu debein , apt install iperf3
docker run -it --rm --name iperf3_client networkstatic/iperf3  -c 192.168.19.10


docker stop iperf3_client && docker rm iperf3_client


不用docker的话需要自行pip install


pip install speed-cli

speed-cli

标签:iperf3,cli,--,speed,linux,docker,测速
来源: https://blog.csdn.net/qq_43373608/article/details/116840649