centos7查看网卡实时流量

By | 2017年2月17日

可以通过iptraf命令查看网卡的实时流量,图像非常直观。

安装:使用yum安装。

yum -y install iptraf

[root@node6 ~]# 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

发表评论

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