Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jul 1997 09:18:15 +1000 (EST)
From:      "Daniel O'Callaghan" <danny@panda.hilink.com.au>
To:        NetSonic <support@netsonic.com>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: per-user IP accounting
Message-ID:  <Pine.BSF.3.91.970709091628.869r-100000@panda.hilink.com.au>
In-Reply-To: <3.0.32.19970708175611.00e9bfbc@mail.netsonic.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, 8 Jul 1997, NetSonic wrote:

> If I run netstat -abin, I get a list of all ip's but they are all the same,
> what needs to happen to breask that down for each particular ip?

netstat -aibn shows you the stats for the *interface*, with a separate 
line for each IP address of the interface.  If you have multiple IPs per 
interface, you need to use ipfw or something other than netstat.
 
Danny

> Sample output:
> 
> bash# netstat -abin
> Name  Mtu   Network       Address            Ipkts Ierrs     Ibytes
> Opkts Oerrs     Obytes  Coll
> ed0   1500  <Link>      00.40.05.1f.95.fb    98874     0   15603056
> 101223     0   41452333   427
>                         1:0:5e:0:0:1
> ed0   1500  207.250.84    207.250.84.2       98874     0   15603056
> 101223     0   41452333   427
>                         224.0.0.1
> ed0   1500  207.250.84.44 207.250.84.44      98874     0   15603056
> 101223     0   41452333   427
> ed0   1500  207.250.84.45 207.250.84.45      98874     0   15603056
> 101223     0   41452333   427



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970709091628.869r-100000>