In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to check network card traffic under Linux". The content is simple and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how to check network card traffic under Linux".
Method 1. Nload tool
Source package path: http://heanet.dl.sourceforge.net/project/nload/nload/0.7.2/nload-0.7.2.tar.gz View parameters help command: nload-help-a: this seems to be the refresh time period of all data (in seconds). The default is 300.Mui: the maximum display ratio of the traffic graph entering the Nic. Default: 10240 kBit/s.-m: no traffic graph is displayed, only statistics are displayed. -o: set the maximum display ratio of the traffic graph of the outbound network card. Default: 10240 kBit/s.-t: the refresh interval of the data is displayed in milliseconds. -u: sets the data units of Curr, Avg, Min and Max on the right. The default is automatic. Pay attention to the different case units! H | b | k | m | g h: auto, b: Bit/s, k: kBit/s, m: MBit/s etc.H | B | K | M | GH: auto, B: Byte/s, K: kByte/s, M: MByte/s etc.-U: set the data unit of the right Ttl. The default is automatic. Note that the case units are different (same as-u)! Devices: custom monitoring network card, which is all monitored by default. Use the left and right keys to switch. For example, only monitor eth0 command: nload eth0
Method 2. Iftop tool
Source package path: http://www.ex-parrot.com/%7Epdw/iftop/download/iftop-0.17.tar.gz1, iftop interface description interface above shows a scale range similar to the scale, for the display of flow graphics of the long bar as a ruler. The two left and right arrows in the middle indicate the direction of the traffic. TX: send traffic RX: receive traffic TOTAL: total traffic Cumm: total traffic from running iftop to current time peak: traffic peak rates: represent the average traffic in the past 2s 10s 40s respectively, parameters commonly used in iftop related parameters-I set the monitoring network card, for example: # iftop-I eth2-B displays traffic in bytes units (default is bits), such as: # iftop-B bits makes host information display IP directly by default For example, # iftop-N makes the port information display port number directly by default, for example: # iftop-Nmurf shows the inbound and outbound traffic of a specific network segment, such as # iftop-F 10.10.1.0 pm 24 or # iftop-F 10.10.1.0 pm 255.255.255.0 LUV h (display this message), help, display parameter information-p after using this parameter, the middle list shows the local host information Non-native IP information has appeared -b causes the flow graph bar to be displayed by default;-f this is not very good at filtering calculation packets;-P makes host information and port information display by default;-m sets the maximum value of the top tick on the interface, and the scale is displayed in five large segments, for example: some operation commands after # iftop-m 100m enters the iftop screen (pay attention to case) press h to switch whether to display help; press n to switch to display the IP or hostname of the machine Press s to switch whether to display local host information; press d to switch whether to display remote target host host information; press t to switch display format: 2 lines / 1 line / only send traffic / only receive traffic; press N to switch to display port number or port service name; press S to switch whether to display local port information; press D to switch whether to display port information of remote target host; press p to switch whether to display port information. Press P to switch to pause / resume display; press b to switch whether to display the average flow graph bar; press B to switch to calculate the average flow within 2 seconds or 10 seconds or 40 seconds; press T to switch whether to display the total traffic of each connection; press l to turn on the screen filtering function and enter the characters to be filtered, such as ip, after pressing enter, the screen will only display the traffic information related to this IP; press L to switch the scale on the display screen With different scales, the traffic graph bar will change; press j or k to scroll up or down the connection records displayed on the screen; press 1 or 2 or 3 to sort according to the three columns of traffic data displayed on the right; sort by the hostname 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, which is translated, and I haven't used this yet! Press! You can use the Shell command, this is not used! I don't understand what orders work here! Press Q to exit the monitoring.
Method 3. Ifstat
Source packet path: http://gael.roualland.free.fr/ifstat/ifstat-1.1.tar.gz parameter:-a monitors the status information of all network interfaces that can be detected-z hides the interfaces where traffic is none, such as those interfaces that are enabled but not used-I specifies the interface to be monitored, followed by the network interface name time:-T reports the full bandwidth of all monitoring interfaces-w uses the specified column width Instead of automatically magnifying the column width to accommodate the length of the interface name-W wraps the line automatically if the content is wider than the width of the terminal window-b displays bandwidth in kbits/s instead of kbytes/s
Method 4. Iptraf
Iptraf
Installation method:
Yum-y install iptraf
Method 5.
Watch ifconfig
Method 6.
Watch cat / proc/net/dev
The above is all the contents of the article "how to check the network card traffic under Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.