" 目录:RHCA+ -> 12 系统监控 -> 52 iptraf-ng(网络监控分析) "

可对网络进行简单分析,可看到带宽、网络包传输情况;语法格式:iptraf-ng 参数
|----|--------|
| 参数 | 作用 |
| -h | 查看帮助 |
| -s | 指定监控网口 |
一、安装
root@wuzuniao \~# yum -y install iptraf #安装工具
二、使用
root@wuzuniao \~# iptraf-ng #进行网络监控
iptraf-ng 1.1.4
┌─────────────────────────────────┐
│ IP traffic monitor │
│ General interface statistics │
│ Detailed interface statistics │
│ Statistical breakdowns... │
│ LAN station monitor │
│─────────────────────────────────│
│ Filters... │
│─────────────────────────────────│
│ Configure... │
│─────────────────────────────────│
│ About... │
│─────────────────────────────────│
│ Exit │
└─────────────────────────────────┘
Displays current IP traffic information
Up/Down-Move selector Enter-execute
1、选择IP traffic monitor后
┌ Select Interface ────┐
│ All interfaces │
│ lo │
│ ens33 │
│ virbr0 │
└──────────────┘
2、选择ens33后
iptraf-ng 1.1.4
┌ TCP Connections (Source Host:Port) ───────────── Packets ──── Bytes Flag Iface ───┐
│┌192.168.1.160:22 > 431 96952 -PA- ens33 │
│└192.168.1.250:54418 > 385 18904 --A- ens33 │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└ TCP: 1 entries ────────────────────────────────────────────────────── Active ─┘
┌────────────────────────────────────────────────────────────────────────────────────┐
│ ICMPv6 neigh sol (72 bytes) from fe80::381f:f8bd:1052:2747 to 2408:8266:201:b27:c2 │
│ ICMPv6 neigh adv (64 bytes) from 2408:8266:201:b27:c27c:90ff:fe21:f642 to fe80::38 │
│ ICMPv6 neigh sol (72 bytes) from fe80::1 to fe80::381f:f8bd:1052:2747 on ens33 │
│ ICMPv6 neigh adv (64 bytes) from fe80::381f:f8bd:1052:2747 to fe80::1 on ens33 │
│ ICMPv6 neigh sol (72 bytes) from fe80::381f:f8bd:1052:2747 to fe80::1 on ens33 │
│ ICMPv6 neigh adv (64 bytes) from fe80::1 to fe80::381f:f8bd:1052:2747 on ens33 │
└ Bottom ────── Elapsed time: 0:00 ────────────────────────────────────────────────┘
Packets captured: 835 │ TCP flow rate: 21.10 kbps
Up/Dn/PgUp/PgDn-scroll M-more TCP info W-chg actv win S-sort TCP X-exit
3、按X退出
root@wuzuniao \~#