Hi, I want to see bandwidth every ip address in the local network that passing my linux gateway in the console, may be it''s similar like mrtg (web based version) It''s possible ? Best regards,>--<Kristiadi Himawan>--<
On Mon, May 13, 2002 at 08:23:27PM +0700, Kristiadi Himawan wrote:> > Hi, > I want to see bandwidth every ip address in the local network that passing > my linux gateway in the console, may be it''s similar like mrtg (web based > version) > It''s possible ?iptraf or trafshow may help. -- http://www.PowerDNS.com Versatile DNS Software & Services http://www.tk the dot in .tk http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
On Monday 13 May 2002 15:23, Kristiadi Himawan wrote:> Hi, > I want to see bandwidth every ip address in the local network that passing > my linux gateway in the console, may be it''s similar like mrtg (web based > version) > It''s possible ?Yes If you don''t have to much ip addresses, you can create for each address a iptables rule. You can use the byte counters of iptables to calculate the bandwidth. And you can plot the data directly with rrd or feed them to mrtg. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net
there is also bwm. it is very basic though. not as advanced as iptraf or trafshow, but it gives kbytes in and out of the interfaces. below is a snipit. Iface RX(KB/sec) TX(KB/sec) Total(KB/sec) lo 0.000 0.000 0.000 eth0 52.160 64.539 116.699 dummy0 0.000 0.000 0.000 bert hubert wrote:> On Mon, May 13, 2002 at 08:23:27PM +0700, Kristiadi Himawan wrote: > >>Hi, >>I want to see bandwidth every ip address in the local network that passing >>my linux gateway in the console, may be it''s similar like mrtg (web based >>version) >>It''s possible ? > > > iptraf or trafshow may help. >-- Joe Ellis http://www.lithodyne.net Mar 14:38 IRC: #flux on irc.linux.com
On Monday 13 May 2002 19:22, Joe Ellis wrote:> there is also bwm. it is very basic though. not as advanced as iptraf > or trafshow, but it gives kbytes in and out of the interfaces. below is > a snipit. > > Iface RX(KB/sec) TX(KB/sec) Total(KB/sec) > > lo 0.000 0.000 0.000 > eth0 52.160 64.539 116.699 > dummy0 0.000 0.000 0.000Can it also monitor / ip-address ? Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net
no. its just a bw console monitoring tool. Stef Coene wrote:> On Monday 13 May 2002 19:22, Joe Ellis wrote: > >>there is also bwm. it is very basic though. not as advanced as iptraf >>or trafshow, but it gives kbytes in and out of the interfaces. below is >>a snipit. >> >> Iface RX(KB/sec) TX(KB/sec) Total(KB/sec) >> >> lo 0.000 0.000 0.000 >> eth0 52.160 64.539 116.699 >> dummy0 0.000 0.000 0.000 > > Can it also monitor / ip-address ? > > Stef >-- Joe Ellis http://www.lithodyne.net Mar 14:38 IRC: #flux on irc.linux.com
|On Mon, 13 May 2002, Stef Coene wrote: | |If you don''t have to much ip addresses, you can create for each address a |iptables rule. You can use the byte counters of iptables to calculate the |bandwidth. And you can plot the data directly with rrd or feed them to mrtg. | |Stef | |-- I already do that before and i have tried bwm and iptraf (nice tools with filtering) too, but still can''t do bw console monitoring for each ip address that forwarded. May be anyone ever try to dump byte calculated by ipchain or iptables not to rrd or mtrg but to console ? Any suggestions ? Best regards,>--<Kristiadi Himawan>--<
Hi! >Hi, >I want to see bandwidth every ip address in the local network that passing >my linux gateway in the console, may be it''s similar like mrtg (web based >version) >It''s possible ? > > > Best regards,>--<Kristiadi Himawan>--< >see if you can use this, http://free.top.bg/radolin/htbtools/
> I already do that before and i have tried bwm and iptraf (nice tools with > filtering) too, but still can''t do bw console monitoring for each ip > address that forwarded. > May be anyone ever try to dump byte calculated by ipchain or iptables not > to rrd or mtrg but to console ?I did both. I have script that uses ipables and generates some html or text output (http://qos.dyndns.org:8080/cgi-bin/monitor.pl it''s not working all the time) and a script that uses tc and rrd to create some graphs: http://home.docum.org/stef.coene/qos/gui/rrd.html. I''m working on the second script to also include the output of iptables. Mail me if you want to try them out and you need some help. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net
On Mon, May 13, 2002 at 08:23:27PM +0700, Kristiadi Himawan wrote:> Hi, > I want to see bandwidth every ip address in the local network that passing > my linux gateway in the console, may be it''s similar like mrtg (web based > version) > It''s possible ?(I replied yesterday but my message didn''t make it through somehow) Why don''t you try WIPL? It''s available from the same site as the WRR qdisc (http://wipl-wrr.sourceforge.net/) and even though it looks a bit beta it was able to do for me what I haven''t found elsewhere. Namely, it took about half an hour to set it up so that it outputs a list of IP addresses for which traffic has been seen currenly, sorted by the traffic rate (so that the biggest downloaders are at the top). The traffic rate is computed based on last 60 seconds'' traffic, refreshed every 10 seconds (both configurable, of course). I set wiplc to output the list in HTML (configurable, too). So now I have a URL where I can go to see top network users *at real time*. It doesn''t do graphs, sure, but I use rrdtool for graphing anyway. The best thing is that WIPL''s architecture is very modular and extensible so you can do a lot of thing with its output (e.g. run it through arbitrary CGI''s or even store the values and graph them later if you really feel the need). There''s one problem, though - wipld doesn''t seem to age entries in its address cache so no matter how big I set the cache, it always overflows in the end. I haven''t gotten around yet to reporting the bug, though. pvl
Hi all, I tried setting the ''BW'' parameter to 10Mbps for a 100Mbps link. Then i sent traffic as fast as I could and I got throughput of 95Mbps. So i guess that parameter is not used for rate-limiting a flow. What is it used for? Regards, Amit -- I''m an angel!!! Honest! The horns are just there to hold the halo up straight. ^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^ Amit Kucheria EECS Grad. Research Assistant University of Kansas @ Lawrence (R): +1-785-830-8521 ||| (C): +1-785-760-2871 ____________________________________________________
On Tuesday 21 May 2002 10:04, Amit Kucheria wrote:> Hi all, > > I tried setting the ''BW'' parameter to 10Mbps for a 100Mbps link. Then i > sent traffic as fast as I could and I got throughput of 95Mbps. > > So i guess that parameter is not used for rate-limiting a flow. What is it > used for?The bandwidth parameter is used for internal calculations and should be set to the NIC speed. So 100Mbit for a 100mbit NIC. If you want to limit the speed, you will have to add the bounded option and set the rate to the speed you want to limit the traffic. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net