How to display Network interface statistics

In this article it is explained how to use nestat command to show statistics of eth0,localhost,wireless or any other interface.

When invoked with the -i flag, netstat displays statistics for the network interfaces currently configured. If -a flag is also given, it prints all interfaces present in the kernel, not only those that have been configured currently.

The MTU and Met fields show the current MTU and metric values for that interface. The RX and TX columns show how many packets have been received or transmitted error-free (RX-OK/TX-OK) or damaged.

(RX-ERR/TX-ERR); how many were dropped (RX-DRP/TX-DRP); and how many were lost because of an overrun (RX-OVR/TX-OVR). The last column shows the flags that have been set for this interface. These characters are one-character versions of the long flag names that are printed when you display the interface configuration with ifconfig:


B
       A broadcast address has been set.
L
       This interface is a loopback device.
M
       All packets are received (promiscuous mode).
O
       ARP is turned off for this interface.
P
       This is a point-to-point connection.
R
       Interface is running.
U
       Interface is up.

Posted on: 11/12/2009








0 Comments
If you want to leave a comment please Login or Register
How to backup your data using rsync......
Understanding autoconf......
The Basics of fdisk......
Accessing Memory Using DMA......
The fd Directory......