Chuyển đến nội dung chính

[ iftop ] A Network Bandwidth Monitoring Tool for Linux


iftop is used to view the current bandwidth on a network interface. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts. iftop must be run by a root user or a user who has sufficient privileges to monitor network bandwidths.
Installing iftop
On Debian/Ubuntu:
sk@sk:~$ sudo apt-get install iftop
On CentOS/RHEL:
iftop will not be found in official repositories. So let us add EPEL repository to install iftop:
[root@server ~]# rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Now install it using the following command:
[root@server ~]# yum install iftop
Usage
iftop is very simple to use. Just type the iftop command on terminal with root privileges to display the bandwidth usage of the first network interface. Press to exit from the iftop command output.
[root@server ~]# iftop
root@server_001
To view the source and destination listening ports, just press SHIFT+S and SHIFT+D. It will display the traffic along with source and destination ports.
root@server_007
To view the network bandwidth of a particular interface, use the following command.
[root@server ~]# iftop -i eth0
root@server_002
By default, iftop will display all traffic in kilo/mega/giga bits per second. To display all traffic in bytes instead of bits the parameter -B (Capital B).
[root@server ~]# iftop -i eth0 -B
root@server_003
To display the traffic on which port is occurring, use -P and -N switches with iftop command.
[root@server ~]# iftop -i eth0 -P -N
The parameter -N displays the port number.
root@server_004
To view the in and out packet flowing of a network, use the following command.
 [root@server ~]# iftop -F 192.168.1.0/24
For more information about iftop command, refer the man pages using the following command:


[root@server ~]# man iftop

Nhận xét

Bài đăng phổ biến từ blog này

Reset hộp mực máy in brother

Đổ mực máy in   Brother rất đơn giản ! Nhưng khi đổ mực xong phải biết cách reset thì máy mới hoạt động bình thường, nếu không máy sẽ vẫn thông báo đèn toner, toner low, toner empty....Hôm nay mực in Tây Hồ xin hướng dẫn các bạn cách   Reset máy in brother 2140   và các loại máy in cùng dòng : 2130,2250, 2250dn, 2240, 2240dn... CÁC DÒNG MÁY IN BROTHER KHÁC Bother HL : 2130 /2140/2240/2250/2240d/2250dn/1111 Brother J100/140/140w/125/125w Brother J200/220/220w Brother J315/315w/3520/3520dw Brother J410/430/415w/415dw Brother J725/725dw Brother J825/825dw RESET MÁY IN BROTHER 2140/2130/2240/2250DN Có rất nhiều cách  Reset máy in brother 2140 , 2130,2240, 2250. Nhưng có 2 cách reset miễn phí không mất tiền Mực in Tây Hồ giới thiệu sau đây sẽ giúp các bạn có thể tự làm tại nhà. Có 2 loại Reset máy in brother :  Reset mực :  Bằng tay  hoặc bằng bộ  Kit reset Reset Trống Tại sao pha...

Hướng dẫn reset máy in brother 2701dw

Mở nắp cửa tháo hộp mực máy in ra, cụm cartridge gồm 2 phần : cụm trống và cụm mực. Dùng tuốc-nơ-vít 4 cạnh vặn 2 con ốc tháo cụm bánh răng reset ra ( 2 con ốc nằm ở bên phía bánh răng ), bên phía bánh răng có 3 con ốc thì văn 2 con ra. Tháo cụm cartridge ra chúng ta để ý vị trí của  nẫy nhựa màu trắng  ở vị trí bên trái của cung tròn. Tháo được cụm bánh răng reset ra ( hình ảnh ) Bánh răng reset là bánh răng có gắn lò xo ở phía trên. Tháo rời các bánh răng ra Nắp nhựa màu đen ( khoanh đỏ ) bạn dùng tua-vít 2 cạnh bẩy cái nắp ra để đổ mực vào trong sau đó nắp lại như cũ ( để ý không làm gãy hoặc méo trục nhựa màu đen để ráp bánh răng vào ). Để ý khi máy in báo : “ tonner empty ”  trên màn hình   nghĩa là máy đã hết mực.   Đổ mực xong chúng ra lắp bánh răng như hình dưới để reset : Bánh răng bên cạnh cũng phải đúng vị trí. vấu nhựa ...

How to Fix Windows Error 0x00000709

add a share printer error 0x00000709. Follow this step by step guide to learn how to fix this error: In this tutorial, we will teach you how to fix the Blue Screen of Death Stop Error 0x00000709. The error "0x00000709" occurs when you try to connect a shared printer over the network. The printer exists but you are unable to connect and you will get this error. Step 1 -- Open RUN type: \\192.168.1.111  Enter Step 2 -- Open the shared printer When the network path window opens up, double click on the printer. A pop-up window will appear and will show you the error: "Operation could not be completed error 0x00000709". Click on the Ok button and close all the windows. Step 3 -- Go to Devices & Printers Now let's resolve the error and properly add the shared printer. First of all, open the start menu and click on Devices and Printers. Step 4 -- Add a printer In the Devices and Printers window, click on the Add a Printer tab. Choose to add a lo...