Monitoring traffic from the console

If you like me are forgetful and cannot remember the names of come commands a useful one is iptraf this command originated on one of th BSD’s (FreeBSD should my memory serve me correctly) and it will display the traffic wandering through your ethernet devices. It should be functional under most recent linux distro’s (was on the gentoo box I just looked at) and failing that you should be able to download and compile the source from the IPTraf homepage.

It was most handy to find when I was looking for a tool to monitor the traffic of one of our linux based routers. I was hoping to see that eth0 was not being overly utilised.

So if you are looking at something to monitor ethernet traffic on your eth0 eth1 or any other ethernet interface iptraf is the tool for you.

M


Comments

2 responses to “Monitoring traffic from the console”

  1. IPTraf is a pretty useful tool.

  2. ntop is not bad either. Allows you to keep track via a website.

Leave a Reply