Home » Questions » Computers [ Ask a new question ]

Get Network Traffic

Get Network Traffic

Is there a command line program for Linux that will tell me how much is currently being uploaded and downloaded (ie the network "speed").

Asked by: Guest | Views: 27
Total answers/comments: 2
Guest [Entry]

"iptable rules can be used to count the packets coming in and going out. I have used this capability to troubleshoot network/firewall issue and not for the bandwidth monitoring.

However, iptables does provide options to

create new custom chains
create IP based rules
view counters
reset counters

So using iptable options, a script can do the job for you. An example is given on linux.com on how to use these iptable options."
Guest [Entry]

Give it a try with "vnstat". get it from sourceforge or freshmeat.Wonderful commandline utility to solve your owes.