ifstat – InterFace STATistics Monitoring
ifstat is a tool to report network interfaces bandwith just like vmstat/iostat do for other system counters. It can monitor local interfaces by polling the kernel counters, or remote hosts interfaces using SNMP.
Install ifstat
#apt-get install ifstat
Reading package lists… Done
Building dependency tree… Done
The following NEW packages will be installed
ifstat
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.0kB of archives.
After unpacking 86.0kB of additional disk space will be used.
Get: 1 ftp://kambing.ui.edu stable/main ifstat 1.1-5.0.1 [21.0kB]
Fetched 21.0kB in 1s (16.1kB/s)
Selecting previously deselected package ifstat.
(Reading database … 39819 files and directories currently installed.)
Unpacking ifstat (from …/ifstat_1.1-5.0.1_i386.deb) …
Setting up ifstat (1.1-5.0.1) …
If you want to use this program follow this syntax
#ifstat
Output looks like below
eth0
KB/s in KB/s out
0.12 0.24
0.06 0.12
0.10 0.18
0.06 0.12
0.15 0.12




