Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Real-time monitoring of network card traffic using the iptraf command of linux

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you the use of linux's iptraf command to monitor network card traffic in real time. I hope you will gain a lot after reading this article. Let's discuss it together.

The full spelling of the iptraf command is "IP traffic monitor". The iptraf command can monitor the network card traffic in real time and generate information such as network protocol packet information, Ethernet information, network node status and ip checksum errors.

The iptraf command supports both command line and menu operation. When there are no parameters, the iptraf command will enter the menu operation mode and perform the corresponding operation through the on-screen menu.

Syntax format: iptraf [parameters] [Nic]

Common parameters:

-I immediately enable IP traffic monitoring on the specified network interface-g immediately starts generating summary status information of the network interface-d immediately starts monitoring detailed network traffic information on the specified network interface-s starts monitoring TCP and UDP network traffic information immediately on the specified network interface-z displays the packet count on the specified network interface-l starts monitoring the office immediately on the specified network interface Web workstation information-t specifies the time that the command monitors-B redirects the annotation output to "/ dev/null" Turn off annotation input and run the program as a background process-f clear all counters-h display help information

Reference example

Monitor the detailed traffic of the Nic eth0:

[root@linuxcool] # iptraf-d eth0

Monitor the detailed ip traffic of the Nic eth0:

[root@linuxcool] # iptraf-I eth0

Monitor the detailed tcp/udp traffic of the Nic eth0:

[root@linuxcool] # iptraf-s eth0 has finished reading this article. I believe you have some understanding of using linux's iptraf command to monitor network card traffic in real time. If you want to know more about it, welcome to follow the industry information channel. Thank you for reading!

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: 212

*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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report