3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ESXiホストでiperfを使う方法

Last updated at Posted at 2016-09-26

#参考記事

#0.iperfファイルの存在を確認

[root@esx01:~] ls /usr/lib/vmware/vsan/bin/iperf
/usr/lib/vmware/vsan/bin/iperf

#1.iperfファイルのコピー
iperfコマンドを打つと以下のエラーとなる
「bind failed: Operation not permitted」

[root@esx01:~] /usr/lib/vmware/vsan/bin/iperf -s
bind failed: Operation not permitted
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------

のでコピーを行います

cp /usr/lib/vmware/vsan/bin/iperf /usr/lib/vmware/vsan/bin/iperf.copy

#2.アドレスへのバインドを行う
複数アドレスを持っている場合でも、バインドするアドレスを指定できます。
今度はエラーが出なくなります。

[root@esx01:~] /usr/lib/vmware/vsan/bin/iperf.copy -s -B 10.xx.xx.xx
------------------------------------------------------------
Server listening on TCP port 5001
Binding to local address 10.133.157.199
TCP window size: 64.0 KByte (default)
------------------------------------------------------------

#3.ファイアウォールの無効化
iperfではデフォルトでTCP、UDPの5001ポートを使用しますが、
ESXiホストではiperfについては細かいファイアウォール設定が存在しないため、
iperfをホストに向けて実施する際は、ファイアウォールを無効にします。

esxcli network firewall set --enabled false

#4.iperfの実行
上記で設定したESXiホストに向けて、他のESXiホストからiperfを試しました。
意外と普通に使えるものですね。

[root@ESX001:~] /usr/lib/vmware/vsan/bin/iperf.copy -c 10.xx.xx.xx -i 10 -t 60 -m
------------------------------------------------------------
Client connecting to 10.xx.xx.xx, TCP port 5001
TCP window size: 32.5 KByte (default)
------------------------------------------------------------
[  3] local 192.xx.xx.xx port 58904 connected with 10.xx.xx.xx port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1.07 GBytes   919 Mbits/sec
[  3] 10.0-20.0 sec  1.08 GBytes   931 Mbits/sec
[  3] 20.0-30.0 sec  1.08 GBytes   927 Mbits/sec
[  3] 30.0-40.0 sec  1.09 GBytes   940 Mbits/sec
[  3] 40.0-50.0 sec  1.08 GBytes   925 Mbits/sec
[  3] 50.0-60.0 sec  1.08 GBytes   928 Mbits/sec
[  3]  0.0-60.0 sec  6.48 GBytes   928 Mbits/sec
[  3] MSS size 1448 bytes (MTU 1500 bytes, ethernet)
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?