On 02/25/2012 12:34 AM, Frank Cox wrote:
On Fri, 24 Feb 2012 17:23:31 -0600 I have a small network with two cheap dlink routers on it, one attached to a cable modem and the other to a DSL modem. I route certain data through the cable modem, and everything else goes through the DSL.
However, on the computers only have eth0 and I just use route commands on the individual computers to sort out what I want to go out through each modem. My default gateway is 192.168.0.254 and I custom route certain traffic through 192.168.0.1.
Ultimately, I have three kinds of traffic that I'm interested in counting from each computer on my network: internal traffic, from one computer to another (from 192.168.0.x to 192.168.0.y); external traffic through 192.168.0.254; external traffic through 192.168.0.254. I would like to look at a report on each of my computers and find out how much data each one has sent and received during the period in each of those categories.
Can this help? I think friend of mine wrote it, Nenad Opsenica, some 6-7 years ago, I don't think he will mind:
http://www.plcomputers.net/download/svasta/if-kbps
Use it as "if-kbps eth0" and brake with Ctrl+C.