Openwrt中用iftop查看网络流量情况
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查看网络流量情况的更多相关文章
- linux之nload和iftop查看网络使用情况
操作系统: centos7 nload: yum install -y gcc yum install -y gcc-c++ yum install -y ncurses-devel yum inst ...
- Linux网络——查看网络连接情况的命令
Linux网络——查看网络连接情况的命令 摘要:本文主要学习了Linux中用来查看网络连接情况的命令. hostname命令 hostname命令用于显示和设置系统的主机名称,设置只是临时生效,永久生 ...
- Linux动态查看网络流量iptraf
iptraf工具可以动态查看网络流量 yum install iptraf 查看所有网卡流量 iptraf -g
- 使用iptraf,ifstat查看网络流量
1. 使用 iptraf iptraf是一个实时查看网络流量的文本屏幕界面工具. 有些系统不一定安装了, 如果是 RHEL,那么就去找安装盘中的 iptraf*.rpm 包安装: 如果是 CentOS ...
- centos 装iptraf查看网络流量
今天在测试服务器上准备看下网络流量 [root@localhost ~]# iptraf -d eth0-bash: iptraf: command not found 发现运维同事没有给安装 只能自 ...
- linux 查看网络流量命令
转: linux 查看网络流量命令 2019年01月31日 14:22:00 weixin_33894992 阅读数 893 sar命令参数很多,有时间man一下. -n参数很有用,他有6个不同的 ...
- linux服务器使用iftop查看带宽流量IP
20元现金领取地址:http://jdb.jiudingcapital.com/phone.html内部邀请码:C8E245J (不写邀请码,没有现金送) 国内私募机构九鼎控股打造,九鼎投资是在全国股 ...
- Linux系统使用iftop查看带宽占用情况
Linux系统下如果服务器带宽跑满了,查看跟哪个ip通信占用带宽比较多,可以通过iftop命令进行查询,使用方法如下: 1 安装方法[软件官网地址:http://www.ex-parrot.com/~ ...
- centos8平台基于iftop监控网络流量
一,iftop的作用: 基于ip统计外部机器与本机之间的网络流量, 可以方便的查看各客户端是否有非正常的到本机的访问 说明:刘宏缔的架构森林是一个专注架构的博客,地址:https://www.cnbl ...
随机推荐
- verilog语法实例学习(9)
常用的时序电路介绍 寄存器 一个触发器可以存储一位数据,由n个触发器组成的电路可以存储n位数据,我们把这一组触发器叫做寄存器.寄存器中每个触发器共用同一个时钟. 下面是n位寄存器的代码,我们通过一个参 ...
- [转]QT QDateTime类、QTimer类
QDateTime类,头文件#include <QDateTime> 可以使用QDateTime类来获得系统时间.通过QDateTime::currentDateTime()来获取本地系统 ...
- Asp.net5 Session Set扩展
关于Asp.net 5 如何使用Session大家可以参考http://www.mikesdotnetting.com/article/270/sessions-in-asp-net-5 和http: ...
- Android Studio中实现AIDL
AIDL 先来两个传送门: http://www.cnblogs.com/yydcdut/p/3961545.html Android面试,与Service交互方式 http://www.cnblog ...
- 学习世界模型,通向AI的下一步:Yann LeCun在IJCAI 2018上的演讲
https://baijiahao.baidu.com/s?id=1606296521706399213&wfr=spider&for=pc 机器之心整理,机器之心编辑部. 人工智能顶 ...
- xgboost入门与实战
xgboost入门与实战(实战调参篇) https://blog.csdn.net/sb19931201/article/details/52577592 前言 前面几篇博文都在学习原理知识,是时候上 ...
- 大智慧专业财务PFFIN(N,M)函数N的取值一览表
每股指标 1001 摊薄每股收益 1002 净资产收益率 1003 每股经营活动现金流量 1004 每股净资产 1005 每股资本公积金 1006 每股未分配利润 1007 每股主营收入 1008 扣 ...
- (纪录片)鸟瞰中国 China from Above
简介: 类型: 纪录片官方网站: natgeotv.com/uk/china-from-above制片国家/地区: 美国语言: 英语集数: 2单集片长: 44分钟IMDb链接: tt4872012 主 ...
- maven 管理
http://www.cnblogs.com/qq78292959/p/3711501.html
- archivedDataWithRootObject NSUserDefaults
archivedDataWithRootObject 存储 BusinessCard *bc = [[BusinessCard alloc] init]; NSUserDefaults *ud = ...