iptraf-ng

介绍

iptraf-ng 是观察网络流速的强力工具,它可以让你的观察逐步深入,从硬件层(网卡),到网络层(IPv4,IPv6),到传输层(TCP,UDP),一直到每一对socket pair。

命令选项

参数说明:
iptraf-ng [options]:
-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

使用示例

sudo iptraf-ng -s eth0  # 用于统计各port的流量

留下评论

您的邮箱地址不会被公开。 必填项已用 * 标注