old-www/LDP/nag/node76.html

65 lines
2.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-c (Feb 29, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>Displaying Interface Statistics</TITLE>
</HEAD>
<BODY LANG="EN">
<A HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <BR>
<B> Next:</B> <A HREF="node77.html">Displaying Connections</A>
<B>Up:</B> <A HREF="node74.html">Checking with netstat</A>
<B> Previous:</B> <A HREF="node75.html">Displaying the Routing Table</A>
<BR> <P>
<H2><A NAME="SECTION007920000">Displaying Interface Statistics</A></H2>
When invoked with the -i flag, netstat will display
statistics for the network interfaces currently configured. If, in
addition, the -a option is given, it will print <em>all</em>
interfaces present in the kernel, not only those that have been
configured currently. On vstaout, the output from netstat
will look like this:
<pre>
$ netstat -i
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-
lo 0 0 3185 0 0 0 3185 0 0
eth0 1500 0 972633 17 20 120 628711 217 0
</pre>
The MTU and Met fields show the current MTU and metric value for that
interface. The RX and TX columns show how many packets have been
received or transmitted error free (RX-OK/TX-OK), 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).
<P>
The last column shows the flags that have been set for this interface.
These are one-character versions of the long flag names the are printed
when you display the interface configuration with ifconfig.
<dl>
<dt><b>B</b><dd> A broadcast address has been set.
<dt><b>L</b><dd> This interface is a loopback device
<dt><b>M</b><dd> All packets are received (promiscuous mode).
<dt><b>N</b><dd> Trailers are avoided.
<dt><b>O</b><dd> ARP is turned off for this interface.
<dt><b>P</b><dd> This is a point-to-point connection.
<dt><b>R</b> Interface is running.
<dt><b>U</b> Interface is up.
</dl>
<hr>
<P><ADDRESS>
<I>Andrew Anderson <BR>
Thu Mar 7 23:22:06 EST 1996</I>
</ADDRESS>
</BODY>
</HTML>