Background:
When debugging the network, I often need to check the maximum bandwidth between the two hosts. I have been using the iperf command, and the effect is very good, but I found some O & M friends do not know that this tool is available, so I plan to write an article for a brief introduction.
Specific operations:
Operating system: CentOS6.5 x86_64 Minimal
Server:
192.168.10.11
192.168.10.12
Root@192.168.10.11 ~ # Yum install http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Root@192.168.10.11 ~ # Yum install iperf
Root@192.168.10.12 ~ # Yum install http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Root@192.168.10.12 ~ # Yum install iperf
Root@192.168.10.12 ~ # Iperf-s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
Root@192.168.10.11 ~ # Iperf-c 192.168.10.12
------------------------------------------------------------
Client connecting to 192.168.10.12, TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[3] local 192.168.10.11 port 23351 connected with 192.168.10.12 port 5001
[ID] Interval Transfer Bandwidth
[3] 0.0-10.0 sec 744 MBytes 624 Mbits/sec
Root@192.168.10.12 ~ # Iperf-s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[4] local 192.168.10.12 port 5001 connected with 192.168.10.11 port 23351
[ID] Interval Transfer Bandwidth
[4] 0.0-10.0 sec 744 MBytes 623 Mbits/sec