小智 7
-p, --port # $IPERF_PORT The server port for the server to listen on and the client to connect to. This should be the same in both client and server. Default is 5001, the same as ttcp.
Run Code Online (Sandbox Code Playgroud)
-p 选项表示要在客户端或服务器中使用的端口号。然后您需要为服务器端和客户端站点设置相同的端口。
例如服务器
iperf -s -p 10000
Run Code Online (Sandbox Code Playgroud)
客户
iperf -c SERVER_IP -p 10000 -t60
Run Code Online (Sandbox Code Playgroud)
小智 7
iperf 3用户文档https://iperf.fr/iperf-doc.php显示您可以使用--cport <port>和-B --bind选项分配特定的客户端端口.查看iperf3用户文档以获取更多详细信息.以下是使用客户端端口号5500的示例.
服务器在10.0.0.2上运行:
> iperf3 -s
Run Code Online (Sandbox Code Playgroud)
客户端在10.0.0.1上运行:
> iperf3 -c 10.0.0.2 -B 10.0.0.1 --cport 5500
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
26236 次 |
| 最近记录: |