Install the utility “iperf” or “iperf3” on both servers. Below here an example of install/using it on Alma9 linux server. On other distros it could be the same –
Install iperf/iperf3 using yum or dnf or apt –
#sudo yum install iperf3
Run iperf3 on the server –