CentOS8へ、iperf3のインストール
dnfでインストールして、firewall-cmdで穴あけをしてやるだけです。
SELinuxは有効化してますが、特に設定を変更する必要はありません。
[root@hinata]# cat /etc/redhat-release
CentOS Linux release 8.0.1905 (Core)
[root@hinata]#
[root@hinata]# getenforce
Enforcing
[root@hinata]#
[root@hinata]# dnf install iperf3
Waiting for process with pid 13976 to finish.
CentOS-8 - AppStream 1.7 kB/s | 4.3 kB 00:02
CentOS-8 - Base 1.7 kB/s | 3.9 kB 00:02
CentOS-8 - Extras 1.2 kB/s | 1.5 kB 00:01
Extra Packages for Enterprise Linux 8 - x86_64 4.4 kB/s | 7.2 kB 00:01
Zabbix Official Repository - x86_64 2.4 kB/s | 2.9 kB 00:01
Zabbix Official Repository non-supported - x86_ 774 B/s | 951 B 00:01
依存関係が解決しました。
================================================================================
パッケージ アーキテクチャー
バージョン リポジトリ サイズ
================================================================================
Installing:
iperf3 x86_64 3.5-3.el8 AppStream 95 k
トランザクションの概要
================================================================================
インストール 1 パッケージ
ダウンロードサイズの合計: 95 k
インストール済みのサイズ: 219 k
これでよろしいですか? [y/N]: y
パッケージのダウンロード中です:
iperf3-3.5-3.el8.x86_64.rpm 86 kB/s | 95 kB 00:01
--------------------------------------------------------------------------------
合計 39 kB/s | 95 kB 00:02
トランザクションの確認を実行中
トランザクションの確認に成功しました。
トランザクションのテストを実行中
トランザクションのテストに成功しました。
トランザクションを実行中
準備 : 1/1
Installing : iperf3-3.5-3.el8.x86_64 1/1
scriptletの実行中: iperf3-3.5-3.el8.x86_64 1/1
検証 : iperf3-3.5-3.el8.x86_64 1/1
インストール済み:
iperf3-3.5-3.el8.x86_64
完了しました!
[root@hinata]#
iperf3を起動してみる
[root@hinata]# iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
^Ciperf3: interrupt - the server has terminated
[root@hinata]#
5201番ポートでListenしていることが分かったので、Firewallに穴を開ける
[root@hinata]# firewall-cmd --add-port=5201/tcp --permanent
success
[root@hinata]# firewall-cmd --reload
success
[root@hinata]#
改めてiperfを実行し、速度を計測してみる
ClientはQNAP TS-431X2です。
Serverは物理が「HP ProLiant ML310e Gen8 v2」です。ESXi(6.7.0 Update 3)を入れて、仮想マシンとしてCentOS8のhinataを動かしています。
Client,ServerともにCatalyst2960のTenGigabitEthernetで接続されています。
[root@hinata]# iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.0.141, port 40350
[ 5] local 192.168.0.202 port 5201 connected to 192.168.0.141 port 40352
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 894 MBytes 7.50 Gbits/sec
[ 5] 1.00-2.00 sec 1.08 GBytes 9.29 Gbits/sec
[ 5] 2.00-3.00 sec 1.08 GBytes 9.31 Gbits/sec
[ 5] 3.00-4.00 sec 1.07 GBytes 9.22 Gbits/sec
[ 5] 4.00-5.00 sec 1.02 GBytes 8.79 Gbits/sec
[ 5] 5.00-6.00 sec 1012 MBytes 8.49 Gbits/sec
[ 5] 6.00-7.00 sec 1.08 GBytes 9.27 Gbits/sec
[ 5] 7.00-8.00 sec 1016 MBytes 8.52 Gbits/sec
[ 5] 8.00-9.00 sec 931 MBytes 7.81 Gbits/sec
[ 5] 9.00-10.00 sec 970 MBytes 8.13 Gbits/sec
[ 5] 10.00-10.03 sec 31.1 MBytes 9.40 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate
[ 5] 0.00-10.03 sec 10.1 GBytes 8.64 Gbits/sec receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
^Ciperf3: interrupt - the server has terminated
[root@hinata]#
まとめ
特に問題なくdnfでインストールして動かせました。手順としてはCentOS7の時と変わってないかと思います。
しかし、10Gbpsで繋いでると爆速ですね。