Install iperf on Ubuntu
root# apt-cache search iperf
iperf - Internet Protocol bandwidth measuring tool
root#apt-get install iperf
Install iperf on RHEL & Fedora
root#yum search iperf
iperf.i686 : Measurement tool for TCP/UDP bandwidth performance
iperf3.i686 : Measurement tool for TCP/UDP bandwidth performance
yum install iperf3.i686
Install iperf for Windows
download iperf.exe and copy into C:\Documents and Settings\abc. abc is the logged-in user location.
iperf can be installed on two machines. You'll run one as a server, and one as a client. On the server side, run below. -s:Act as a Server, -c:Act as a client, -p:specify a port
Open Command prompt and run below commands.
On server side run below and press enter
iperf.exe -s
-------------------------------------
Server listening on TCP port 5001
TCP window size: 8.00 KByte (default)
-------------------------------------
On the client side, run:
iperf.exe -s
-------------------------------------
Server listening on TCP port 5001
TCP window size: 8.00 KByte (default)
-------------------------------------
On the client side, run:
iperf.exe -c [server_ip]
iperf.exe -c 192.168.xx.xx
--------------------------------------------------
Client connecting to 192.168.xx.xx, TCP port 5001
TCP window size: 65.0 KByte (default)
--------------------------------------------------
[ 3] local 192.168.10.30 port 53345 connected with 192.168.xx.xx port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 37.9 MBytes 31.8 Mbits/sec