CentOS7下的網絡監控工具iptraf-ng

  1. 安裝
yum install -y iptraf-ng
  1. 命令選項
iptraf-ng -h
usage: iptraf-ng [options]
   or: iptraf-ng [options] -B [-i <iface> | -d <iface> | -s <iface> | -z <iface> | -l <iface> | -g]

    -h, --help            show this help message

    -i <iface>            start the IP traffic monitor (use '-i all' for all interfaces)
    -d <iface>            start the detailed statistics facility on an interface
    -s <iface>            start the TCP and UDP monitor on an interface
    -z <iface>            shows the packet size counts on an interface
    -l <iface>            start the LAN station monitor (use '-l all' for all LAN interfaces)
    -g                    start the general interface statistics

    -B                    run in background (use only with one of the above parameters
    -f                    clear all locks and counters
    -t <n>                run only for the specified <n> number of minutes
    -L <logfile>          specifies an alternate log file
  1. 使用方法
# 查看每一塊網卡上的流量
iptraf-ng -g
# 顯示指定網卡上的流量統計,總體流量、流入量、流出量、以及按協議分類的流量統計
iptraf-ng -d eth0
# 統計各port的流量
iptraf-ng -s eth0
# 查看遠程主機端口及報文(含抓包信息)
iptraf-ng -i eth0
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章