2014年8月13日 星期三

Linux 網路效能測試工具 iperf

1.  至官網下載 https://iperf.fr/ 

2. 解壓縮、編譯,安裝
 #tar zxvf iperf-2.0.5-source.tar.gz
 #cd iperf-2.0.5/
 #./configure && make && make install

3. 測試
  3.1 Server 端指令
     #iperf -s
  3.2 Client 端指令
     #iperf -c $IP -t 60 -d -i 1

4. 參數說明
   -s = Server mode
   -c = Client mode
   $IP = Server IP
   -t = 測試時間(秒)
   -d = 雙向測試
   -i = 間隔(秒)顯示報告

5. 將測試數據生成報告
  #iperf -c 192.10.1.1 -t 60 -i 1 | tee -a test.log
  

沒有留言:

張貼留言