Ubuntu iptraf监控流量


# apt-get install iptraf


# iptraf   (iptraf要求窗口至少80x24,可命令行可图形化界面)


按任意键


IP traffic monitor


eth0   (选择要监控的网口)   


退出按x键



另建议对iptraf进行下配置(主要开启MAC和log)


# iptraf


configure


Logging  回车(切换ON、OFF,默认为OFF,设成ON)


Source MAC addrs in traffic monitor  回车(切换ON、OFF,默认为OFF,设成ON)


Exit configuration


IP traffic monitor


此时会要确认\修改log名,默认即可(记好路径:/var/log/iptraf/)