Outils pour utilisateurs

Outils du site


issue101:quick_tip

Ceci est une ancienne révision du document !


Quick Tip by Andy Lino

If you have a machine and you see the graphs peak but you don't know who is using the bandwidth, try this at the console:

sudo iftop ­i eth0

iftop has been built in to Ubuntu for several versions now.

iftop: display bandwidth usage on an interface by host

Synopsis: iftop ­h | [­npblNBP] [­i interface] [­f filter code]

-­h display this message -­n don't do hostname lookups -­N don't convert port numbers to services -­p run in promiscuous mode (show traffic between other -­b don't display a bar graph of traffic -­B Display bandwidth in bytes -­i interface listen on named interface -­f filter code use filter code to select packets to count -­F net/mask show traffic flows in/out of IPv4 network -­G net6/mask6 show traffic flows in/out of IPv6 network -­l display and count link­local IPv6 traffic (default: off) -­P show ports as well as hosts -­m limit sets the upper limit for the bandwidth scale

-­c config file specifies an alternative configuration file

iftop, version 1.0pre2 copyright © 2002 Paul Warren <pdw@ex­parrot.com> and contributors

As you can see, this tool can give you the output to IPv4 and IPv6 traffic, and also it should help you find out where your bandwidth is being used whether upstream, or downstream.

issue101/quick_tip.1444715313.txt.gz · Dernière modification : 2015/10/13 07:48 de d52fr