|
iftop listens to network traffic on an interface and displays the result in a nice "top-like" style. iftop does for network usage what top does for CPU usage. Homepage: http://www.ex-parrot.com/pdw/iftop/ To install iftop with yum as root (for RedHat / Fedora / Centos based systems only) [root@blackmod ~]# yum install iftop
Start iftop: [root@blackmod ~]# iftop
12.5Kb 25.0Kb 37.5Kb 50.0Kb 62.5Kb └────────────────┴────────────────┴─────────────────┴────────────────┴───────────────── 239.255.255.250 => 192.168.1.1 0b 0b 0b <= 0b 0b 1.61Kb 192.168.1.101 => 192.168.1.1 0b 0b 44b <= 0b 0b 66b 192.168.1.101 => ns2.puck.ch 0b 0b 15b <= 0b 0b 15b 192.168.1.101 => 104.hosttech.eu 0b 0b 10b <= 0b 0b 10b
─────────────────────────────────────────────────────────────────────────────────────── TX: cumm: 636B peak: 792b rates: 0b 0b 69b RX: 8.99KB 17.2Kb 0b 0b 1.70Kb TOTAL: 9.61KB 18.0Kb 0b 0b 1.77Kb
Now, open a second terminal and generate some traffic with ping: [mod@blackmod ~]$ ping www.google.com
Go back to the iftop session and see how it looks now: 25.0Kb 50.0Kb 75.0Kb 100Kb 125Kb └────────────────┴────────────────┴─────────────────┴────────────────┴───────────────── 192.168.1.101 => fx-in-f104.1e100.net 672b 672b 672b <= 672b 672b 672b 192.168.1.101 => 62.192.15.212 0b 61b 15b <= 0b 61b 15b 239.255.255.250 => 192.168.1.1 0b 0b 0b <= 0b 0b 1.61Kb 192.168.1.101 => marvin.testserver.li 0b 0b 15b <= 0b 0b 15b 192.168.1.101 => ns2.puck.ch 0b 0b 15b <= 0b 0b 15b
─────────────────────────────────────────────────────────────────────────────────────── TX: cumm: 169KB peak: 976b rates: 672b 733b 718b RX: 105KB 16.8Kb 672b 733b 2.31Kb TOTAL: 274KB 17.4Kb 1.31Kb 1.43Kb 3.01Kb see also: http://www.madmadmod.com/sysadmin/54-how-to-get-the-current-network-bandwidth-usage-on-linux.html
|