iptraf集多种数据,TCP连接的字节数、数据包、统计和活动指标、TCP / UDP通行故障、本地站点包和二进制字节计算。


[root@searu ~]# yum -y install iptraf


yum install iptraf

[root@searu ~]# iptraf -h
语法:    iptraf [ -f ] [ { -i iface | -g | -d iface | -s iface | -z iface |
-l iface } [ -t timeout ] [ -B ] [ -L logfile ] [-I interval] ]
-i iface     – start the IP traffic monitor (use “-i all” for all interfaces)
-g               – start the general interface statistics
-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 (“-l all” for all LAN interfaces)
-B               – run in background (use only with one of the above parameters)
-t timeout  - when used with one of the above parameters, tells
the facility to run only for the specified number of
minutes (timeout)
-L logfile  - specifies an alternate log file for any direct invocation
of a facility from the command line.  The log is placed in
/var/log/iptraf if path is not specified.
-I interval – specifies the log interval for all facilities except the IP
traffic monitor.  Value is in minutes.
-f          - clear all locks and counters.  Use with great caution.
Normally used to recover from an abnormal termination.
IPTraf 3.0.0 Copyright (c) Gerard Paul Java 1997-2004




如下所示,为IP traffic minitor,all interfaces。






  • An IP traffic monitor that shows information on the IP traffic passing over your network. Includes TCP flag information, packet and byte counts, ICMP details, OSPF packet types.
  • General and detailed interface statistics showing IP, TCP, UDP, ICMP, non-IP and other IP packet counts, IP checksum errors, interface activity, packet size counts.
  • A TCP and UDP service monitor showing counts of incoming and outgoing packets for common TCP and UDP application ports
  • A LAN statistics module that discovers active hosts and shows statistics showing the data activity on them
  • TCP, UDP, and other protocol display filters, allowing you to view only traffic you’re interested in.
  • Logging
  • Supports Ethernet, FDDI, ISDN, SLIP, PPP, and loopback interface types.
  • Utilizes the built-in raw socket interface of the Linux kernel, allowing it to be used over a wide range of supported network cards.
  • Full-screen, menu-driven operation.


  • IP
  • TCP
  • UDP
  • ICMP
  • IGMP
  • IGP
  • IGRP
  • OSPF
  • ARP
  • RARP

具体请访问:About IPTraf