CentOS7下的网络监控工具iptraf-ng

本文介绍了一个强大的网络监控工具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
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值