iftop可以查看指定网卡上的流量情况, 命令说明

iftop: display bandwidth usage on an interface by host

Synopsis: iftop -h | [-npblNBP] [-i interface] [-f filter code]
[-F net/mask] [-G net6/mask6] -h display this message
-n don't do hostname lookups
-N don't convert port numbers to services
-p run in promiscuous mode (show traffic between other
hosts on the same network segment)
-b don't display a bar graph of traffic
-B display bandwidth in bytes
-a display bandwidth in packets
-i interface listen on named interface
-f filter code use filter code to select packets to count
(default: none, but only IP packets are counted)
-F net/mask show traffic flows in/out of IPv4 network
-G net6/mask6 show traffic flows in/out of IPv6 network
-l display and count link-local IPv6 traffic (default: off)
-P show ports as well as hosts
-m limit sets the upper limit for the bandwidth scale
-c config file specifies an alternative configuration file
-t use text interface without ncurses Sorting orders:
-o 2s Sort by first column (2s traffic average)
-o 10s Sort by second column (10s traffic average) [default]
-o 40s Sort by third column (40s traffic average)
-o source Sort by source address
-o destination Sort by destination address The following options are only available in combination with -t
-s num print one single text output afer num seconds, then quit
-L num number of lines to print iftop, version .0pre4
copyright (c) Paul Warren <pdw@ex-parrot.com> and contributors

如果要查看内网连接的各个IP的流量情况, 使用命令

iftop -i br-lan

显示的界面是类似于这样的

        10b               .00Kb            100Kb             .0Mb      .00Gb
└───────┴─────────────────┴─────────────────┴─────────────────┴─────────────────
123.215.56.131 => x240.lan .96Mb .21Mb .25Mb
<= 172Kb 127Kb 130Kb
125.103.109.3 => Honor_V8.lan 671Kb 899Kb 735Kb
<= .5Kb .7Kb .9Kb
125.102.164.48 => 20180331KQT.lan 485Kb 840Kb 329Kb
<= .6Kb .1Kb .4Kb
125.102.164.31 => 20180331KQT.lan 0b 184Kb .8Kb
<= 0b .9Kb .8Kb
200.132.127.188 => 192.168.253.176 0b 116Kb .0Kb
<= 0b .53Kb .38Kb
112.233.48.111 => 192.168.253.176 478Kb .6Kb .9Kb
<= .6Kb .73Kb .18Kb
125.15.222.48 => EDZ-20180331KQT.lan 0b .1Kb .9Kb
<= 0b .4Kb .69Kb ────────────────────────────────────────────────────────────────────────────────
TX: cum: 175MB peak: .69Mb rates: .66Mb .47Mb .21Mb
RX: .49MB 498Kb 277Kb 293Kb 305Kb
TOTAL: 183MB .16Mb .93Mb .75Mb .50Mb

界面的说明:

第一行是刻度, 因为下面显示的每一个连接, 都会根据流量大小高亮显示, 根据的是第一行的刻度. 刻度默认显示的是普通坐标, 按L(大写)可以在普通坐标和对数坐标之间切换
第二行之后是每一个有流量的连接, 箭头表示流向, 右侧的三个数, 分别表示最近的2s, 10s, 40s的平均流量
底部三行, 分别是TX出向, RX入向, TOTAL总计三个维度的统计, 每个维度里面显示的数值分别为cum合计, peak峰值, rates: 2s, 10s, 40s的流量均值

运行时可以使用的命令, 可以通过按h(小写)查看

Openwrt中用iftop查看网络流量情况的更多相关文章

  1. linux之nload和iftop查看网络使用情况

    操作系统: centos7 nload: yum install -y gcc yum install -y gcc-c++ yum install -y ncurses-devel yum inst ...

  2. Linux网络——查看网络连接情况的命令

    Linux网络——查看网络连接情况的命令 摘要:本文主要学习了Linux中用来查看网络连接情况的命令. hostname命令 hostname命令用于显示和设置系统的主机名称,设置只是临时生效,永久生 ...

  3. Linux动态查看网络流量iptraf

    iptraf工具可以动态查看网络流量 yum install iptraf 查看所有网卡流量 iptraf -g

  4. 使用iptraf,ifstat查看网络流量

    1. 使用 iptraf iptraf是一个实时查看网络流量的文本屏幕界面工具. 有些系统不一定安装了, 如果是 RHEL,那么就去找安装盘中的 iptraf*.rpm 包安装: 如果是 CentOS ...

  5. centos 装iptraf查看网络流量

    今天在测试服务器上准备看下网络流量 [root@localhost ~]# iptraf -d eth0-bash: iptraf: command not found 发现运维同事没有给安装 只能自 ...

  6. linux 查看网络流量命令

    转: linux 查看网络流量命令 2019年01月31日 14:22:00 weixin_33894992 阅读数 893   sar命令参数很多,有时间man一下. -n参数很有用,他有6个不同的 ...

  7. linux服务器使用iftop查看带宽流量IP

    20元现金领取地址:http://jdb.jiudingcapital.com/phone.html内部邀请码:C8E245J (不写邀请码,没有现金送) 国内私募机构九鼎控股打造,九鼎投资是在全国股 ...

  8. Linux系统使用iftop查看带宽占用情况

    Linux系统下如果服务器带宽跑满了,查看跟哪个ip通信占用带宽比较多,可以通过iftop命令进行查询,使用方法如下: 1 安装方法[软件官网地址:http://www.ex-parrot.com/~ ...

  9. centos8平台基于iftop监控网络流量

    一,iftop的作用: 基于ip统计外部机器与本机之间的网络流量, 可以方便的查看各客户端是否有非正常的到本机的访问 说明:刘宏缔的架构森林是一个专注架构的博客,地址:https://www.cnbl ...

随机推荐

  1. 洛谷 P1082 同余方程

    题目描述 求关于 x 的同余方程 ax ≡ 1 (mod b)的最小正整数解. 输入输出格式 输入格式: 输入只有一行,包含两个正整数 a, b,用一个空格隔开. 输出格式: 输出只有一行,包含一个正 ...

  2. JS 父页面调子页面(2种情况),子掉父级(1种)(转)

    A :父级调用子级页面 ,非IFRAME情况,类似平级: window.open("子页面.html", "", "width=1024,height ...

  3. iOS中的时钟动画

    iOS 动画效果非常多,我们在开发中可能会遇到很多动画特效,我们就会用到核心动画框架CoreAnimation,核心动画里面的动画效果有很多,都是在QuartzCore.framework框架里面,今 ...

  4. 转:Logistic regression (逻辑回归) 概述

    Logistic regression (逻辑回归)是当前业界比较常用的机器学习方法,用于估计某种事物的可能性.比如某用户购买某商品的可能性,某病人患有某种疾病的可能性,以及某广告被用户点击的可能性等 ...

  5. 转: wireshark过滤语法总结

    from: http://blog.csdn.net/cumirror/article/details/7054496 wireshark过滤语法总结 原创 2011年12月09日 22:38:50 ...

  6. Mongoose vs mongodb native driver – what to prefer?

      Paul Shan 7th Jun 2015 Mongoose or mongodb native driver, which one to use? This is one of the ini ...

  7. 纪念google reader

    2013年3月14日早上,谷歌在其官方博客宣布,2005年推出的 Google Reader 将在7月1号关闭. google reader的历史 以下搞自维基百科http://zh.wikipedi ...

  8. 多模块Maven项目如何使用javadoc插件生成文档

    版权声明:本文为博主原创文章,未经博主允许不得转载.   目录(?)[+]   需求 最近要对一个项目结构如下的Maven项目生成JavaDoc文档. Project                  ...

  9. 使用jstl报http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar错误

    今天创建了一个maven项目,想使用jstl报http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the ...

  10. asp.net序列化

    JsonHelp.cs using System.IO; using System.Text; using System.Runtime.Serialization.Json; namespace W ...