Posted on 2012-02-03 13:49
Milo的海域 阅读(8676)
评论(0) 编辑 收藏 所属分类:
Linux
iperf是个网络带宽的性能测试工具,但是直接yum install iperf是找不到源的。具体安装方法如下:
yum install iperf on centos5
=======================
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm
rpm -i rpmforge-release-0.5.2-2.el5.rf.*.rpm
yum install iperf
yum install iperf on centos6
=======================
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm
yum install iperf
iperf使用示例
on 10.1.74.51
iperf -s
on 10.1.74.76
[root@xen74v02 db1]# iperf -c 10.1.74.51 -B 10.1.74.76
------------------------------------------------------------
Client connecting to 10.1.74.51, TCP port 5001
Binding to local address 10.1.74.76
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[ 3] local 10.1.74.76 port 5001 connected with 10.1.74.51 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 1.03 GBytes 884 Mbits/sec