インフラ系SEの技術メモ

雑なエンジニアが低信頼性のメモを書いています。参考程度にとどめてください。

(iperf3)error / unable to connect to server: Connection refusedの理由

ネットワークパフォーマンス検証ツール

試行錯誤で色々と打つも

# iperf3 -c 10.X.X.X
iperf3: error - unable to connect to server: Connection refused
# iperf3 -c 10.X.X.X -p 22
iperf3: error - received an unknown control message

エラーの連発。どういうことかな~と調べるとわかりました。

双方向で打つ必要がある

同ツール、サーバ側とクライアント側どちらでも動かす必要がありました。
なるほど、だからサーバとかクライアントとかのオプションがあったんですね。

# iperf3
iperf3: parameter error - must either be a client (-c) or server (-s)

Usage: iperf [-s|-c host] [options]
       iperf [-h|--help] [-v|--version]

双方向にツールを入れるの面倒だなあ・・。