linux 测试机器间的带宽(iperf)

如果一件事情值得去做,那它就值得做好。 Whatever is worth doing is worth doing well.
Hey! Linux.
Home
About Me
English Edition
GitHub
Site Map
« 在CentOS 6上部署Shadowsocks Server推荐一个学英语的很棒的方法 »
使用 iperf 检测主机间网络带宽

参考资料:
https://blogs.oracle.com/mandalika/entry/measuring_network_bandwidth_using_iperf

背景介绍:
在调试网络时,经常需要检测两台主机间的最大带宽,我一直使用iperf命令,效果很好很准确,但发现有一些运维朋友并不知道有这个工具,于是打算写篇文章简单介绍一下。

具体操作:
操作系统:CentOS6.5 x86_64 Minimal
服务器:
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

转自好友彩虹男的blog
http://heylinux.com/archives/3825.html

转载于:https://blog.51cto.com/chenwenming/2345259

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值