iftop
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
iftop [2019/10/10 08:21] – walkeradmin | iftop [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 12: | Line 12: | ||
==== Install iftop on CentOS/ | ==== Install iftop on CentOS/ | ||
yum install iftop -y | yum install iftop -y | ||
+ | \\ | ||
+ | |||
+ | ---- | ||
+ | |||
==== Using iftop ==== | ==== Using iftop ==== | ||
From the command line, simply enter: | From the command line, simply enter: | ||
+ | iftop -n | ||
\\ | \\ | ||
+ | The -n option prevents iftop from resolving ip addresses to hostname, which causes additional network traffic of its own. | ||
\\ | \\ | ||
- | iftop -n | ||
\\ | \\ | ||
+ | By default, iftop runs on the first listed interface, you can specify the interface you wish to monitor by using the following: | ||
\\ | \\ | ||
+ | \\ | ||
+ | iftop -i eth3 -n | ||
+ | \\ | ||
+ | The above command will run iftop and monitor traffic on interface eth3. See below for an example iftop output. | ||
+ | \\ | ||
+ | \\ | ||
+ | <color # | ||
+ | < | ||
+ | 12.5Kb | ||
+ | └───────────────────┴───────────────────┴───────────────────┴───────────────────┴──────────────────── | ||
+ | eri-4e-962953 | ||
+ | < | ||
+ | eri-4e-962953 | ||
+ | < | ||
+ | eri-4e-962953 | ||
+ | < | ||
+ | eri-4e-962953 | ||
+ | < | ||
+ | eri-4e-962953 | ||
+ | < | ||
+ | 255.255.255.255 | ||
+ | < | ||
+ | |||
+ | |||
+ | ───────────────────────────────────────────────────────────────────────────────────────────────────── | ||
+ | TX: | ||
+ | RX: 17.6KB | ||
+ | TOTAL: | ||
+ | |||
+ | </ | ||
+ | <color # | ||
+ | < | ||
+ | 1.86Gb | ||
+ | └───────────────────┴───────────────────┴───────────────────┴───────────────────┴──────────────────── | ||
+ | 12.43.30.13 | ||
+ | < | ||
+ | 255.255.255.255 | ||
+ | < | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ───────────────────────────────────────────────────────────────────────────────────────────────────── | ||
+ | TX: | ||
+ | RX: 3.10KB | ||
+ | TOTAL: | ||
+ | </ |
iftop.1570692096.txt.gz · Last modified: 2023/03/09 22:35 (external edit)