Assuming you don't have the following command, you can go to a http://repoforge.org/use/yum source.
Ifstat command
Ifstat is able to monitor network interfaces, and to easily view network traffic
Ifstat default is the unit of traffic that does not monitor the loopback interface traffic is KB/S
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvzgfwzw5nmdexmg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">
Use IFSTAT-A to monitor all interfaces
-L Monitoring Loop network Interface (LO).
By default, all non-loop network interfaces of the Ifstat monitor activity. The use of the found, plus-l-parameters can monitor the entire network interface information, rather than just monitor the Lo interface information. That is, adding the-L-parameter is more of a LO interface's state information than without the-l-parameters.
-a monitor the status information of all the network interfaces that can be detected.
Using discovery, there is one more Plip0 interface information than the-l-parameter. Search and find this is the same port (there is a network device called Plip (Parallel line Internet Protocol). It offers the same mouth ... )
-Z Hidden traffic is a no interface. For example, those interfaces are not available, even though they're activated.
-i specifies the interface to be measured, followed by the network interface name
-S equals plus-D snmp:[[email Protected]][#]host[/nn]] The number of references. Querying a remote host with SNMP
-H Display short help information
-N turns off the display of recurring header information (that is, the name of the network interface appears at the top of the ifstat when execution is not added to the-n parameter. When one screen does not appear, the name of the interface appears again. Note that the traffic information we display is in detail which network interface. Plus-N to close the periodic display interface name, only once)
-T adds a timestamp at the beginning of each line (can tell us the detailed time)
-T reports the full bandwidth of all the monitoring interfaces (the last column has a total, which shows the in and all interfaces of the all interface's out traffic, simply adds the in flow of all the interfaces, and the out traffic adds)
-W Use the specified column width instead of to accommodate the length of the interface name to actively enlarge the column width
-W assumes that the content is wider than the width of the terminal form to wrap itself.
-S maintains status updates on the same line (does not scroll without wrapping) Note: This is handy if you don't like screen scrolling, similar to the way Bmon is displayed
-B display bandwidth instead of KBYTES/S with kbits/s (bit and byte should know the difference)
-Q Quiet mode. Warning message does not appear
-V Displays version number information
-d Specifies a driver to collect state information
Iftop
Iftop is also a real-time traffic monitoring tool capable of monitoring TCP/IP connectivity. However, there is no report function.
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvzgfwzw5nmdexmg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">
First line: Bandwidth display
Middle section: List of external connections, that is, what IP is logged and the network connection to this computer
Middle part right: real-time reference each is the access IP connected to the native 2 seconds, 10 seconds and 40 seconds of average traffic
= = Sends the data. <= representative receives data
Bottom three line: indicates send. Receive and all the traffic
Bottom three row second column: Perform iftop to current traffic for you
Bottom three row third column: for peak value
Bottom three row fourth column: Average
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvzgfwzw5nmdexmg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">
-I sets the network card to monitor. such as: # Iftop-i eth1
-B displays traffic in bytes (default is bits), such as: # Iftop-b
-N Causes the host information to display IP directly by default, such as: # Iftop-n
-N causes port information to display the port number directly by default, such as: # Iftop-n
-F shows incoming and outgoing traffic for a specific segment, such as # iftop-f 10.10.1.0/24 or # iftop-f 10.10.1.0/255.255.255.0
-H (Display this message), help, show parameter information
-P using this parameter, the intermediate list displays the local host information, and the IP information outside the machine appears;
-B to display the flow graph bar by default;
-F This temporary is not very likely to use, filter calculation packets;
-P enables host information and port information to be displayed by default;
-M sets the maximum value of the top-most scale of the interface. Scale divided into five large segment display, example: # iftop-m 100M
Some operation commands after entering the iftop screen (note uppercase and lowercase)
Press H to toggle whether help is displayed;
Press N to toggle the display of the IP or host name of the machine;
Press S to toggle whether the host information of the machine is displayed;
Press D to toggle whether the host information of the remote target hosts is displayed;
Press T to toggle the display format to 2 lines/1 lines/Just show send traffic/show only incoming traffic;
Press N to toggle display port or port service name;
Press S to toggle whether to display the port information of the machine;
Press D to toggle whether the port information of the remote target host is displayed;
Press p to toggle whether the port information is displayed;
Press p to toggle pause/resume display;
Press B to toggle whether the average flow graph bar is displayed;
The average flow in 2 seconds or 10 seconds or 40 seconds is calculated by B switch;
Press T to toggle whether the total traffic for each connection is displayed;
Press L to turn on the screen filtering function. Enter the characters you want to filter. For example, the IP, press ENTER, the screen will only show this IP-related traffic information;
Press L to toggle the scale on the top of the display screen, and the flow graph bar will change depending on the scale;
Press J or press K to scroll up or down the screen to display the connection record;
Press 1 or 2 or 3 it can be based on a sort of three business data to display the right;
Press < to the left or IP sequence of the machine name;
Press > Host name IP sequence based on the remote host or destination;
Press O to toggle fixed only show current connection;
Filter by F to edit code
Press! You can use the shell command
Press Q to exit the monitor.
Detecting network Interfaces