Network interface detection

  
        

If you don't have the following command, you can first add a yum source of http://repoforge.org/use/.

ifstat Command

Ifstat can monitor network interfaces and view network traffic relatively simply


Ifstat is not monitoring the traffic of loopback interfaces by default. The unit is KB/s


Use ifstat -a to monitor all interfaces

<img data-cke-saved-src="http://www .2cto.com/uploadfile/Collfiles/20140718/2014071808541439.png" src="http://www.2cto.com/uploadfile/Collfiles/20140718/2014071808541439.png" alt="" http:=" " www.2cto.com = " " kf = " " ware = " " vc = " " " = " " target = " _blank " & gt; vcq9wOAmIzIwMjg0Ozxicj4KLWIg08NrYml0cy9zz9TKvrT4v + 22 + LK7ysdrYnl0ZXMvcyhiaXS6zWJ5dGXT0LrOx /ix8NOmuMO2vNaqtcCwySk8YnI + Ci1xILCyvrLEo8q9o6y + r7jm0MXPorK7s /bP1jxicj4KLXYgz9TKvrDmsb7Qxc + iPGJyPgotZCDWuLao0ru49sf9tq /AtMrVvK /XtMys0MXPojxicj4KPC9wPgo8cD5pZnRvcDwvcD4KPHA + aWZ0b3DSssrH0ru49sq1yrG1xMH3wb + 84L /YuaS + 36Osv8nS1Lzgv9hUQ1AvSVDBrL3TtcijrLWrysfDu9PQsaix7bmmxNyhozxicj4KPC9wPgo8cD48aW1nIHNyYz0 = " ht Tp://www.2cto.com/uploadfile/Collfiles/20140718/2014071808541441.png" alt="\\">

First line: Bandwidth display Middle part: External connection list, ie record Which ip is connected to the local network? The middle part of the right part: the real-time parameters are the access ip connected to the local 2 seconds, the average traffic of 10 seconds and 40 seconds => represents the sending data, <= represents the receiving data bottom Three lines: Indicates sending, receiving, and all traffic. The bottom three rows and the second column: Run the iftop to the current traffic for you. The bottom three rows and the third column: the high peak. The bottom three rows and the fourth column: the average value


-i is set to monitor the card, such as: # iftop -i eth1 -B show flow in bytes (default bits), such as: # iftop -B -n the default host information directly are displaying the IP, such as: # iftop -n -N port information so that the default port number is displayed directly, such as: # iftop -N -F specific network traffic to and from the display, 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, display parameter information -p use this parameter, The local host information displayed in the list shows IP information other than the local machine; -b causes the traffic graph bar to be displayed by default; -f is not used for the time being, filtering the computing package; -P makes the host information and The port information is displayed by default; -m sets the maximum value of the top scale of the interface, and the scale is displayed in five large segments. Example: # iftop -m 100M Some operation commands after entering the iftop screen (note the case) Press h to switch Whether to display help; press n to switch to display the IP or host name of the machine; press s to switch to display the host information of the machine; press d to switch to display the host information of the remote target host; press t to switch the display format to 2 lines/1 Line/only shows the sending traffic/only shows the receiving traffic; Press N to switch the display port number or port service name; press S to switch to display the port information of the local machine; press D to switch to display the port information of the remote destination host; press p to switch Whether to display the port information; press P to switch pause/continue display; press b to switch to display the average traffic graph; press B to calculate the average traffic within 2 or 10 seconds or 40 seconds; press T to toggle whether to display the total for each connection Traffic; press l to play Screen filtering function, input the characters to be filtered, such as ip, press Enter, the screen will only display the IP related traffic information; press L to switch the scale on the display screen; the scale will change if the scale is different; press j Or press k to scroll up or down the connection record displayed on the screen; press 1 or 2 or 3 to sort according to the three columns of flow data displayed on the right; press < sort according to the local name or IP on the left; press > According to the host name or IP of the remote target host; press o to switch whether to display only the current connection; press f to edit the filter code Press ! You can use the shell command Press q to exit monitoring.

Copyright © Windows knowledge All Rights Reserved