From owner-freebsd-isp Tue Jul 8 16:18:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA15615 for isp-outgoing; Tue, 8 Jul 1997 16:18:31 -0700 (PDT) Received: from panda.hilink.com.au (panda.hilink.com.au [203.8.15.25]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA15609 for ; Tue, 8 Jul 1997 16:18:26 -0700 (PDT) Received: (from danny@localhost) by panda.hilink.com.au (8.8.5/8.8.5) id JAA01429; Wed, 9 Jul 1997 09:18:15 +1000 (EST) Date: Wed, 9 Jul 1997 09:18:15 +1000 (EST) From: "Daniel O'Callaghan" To: NetSonic cc: freebsd-isp@FreeBSD.ORG Subject: Re: per-user IP accounting In-Reply-To: <3.0.32.19970708175611.00e9bfbc@mail.netsonic.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 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