From owner-freebsd-isp Wed May 17 14:39:28 2000 Delivered-To: freebsd-isp@freebsd.org Received: from manor.msen.com (manor.msen.com [148.59.4.66]) by hub.freebsd.org (Postfix) with ESMTP id D3C8537BCD8 for ; Wed, 17 May 2000 14:39:16 -0700 (PDT) (envelope-from wayne@staff.msen.com) Received: (from wayne@localhost) by manor.msen.com (8.9.3/8.9.3) id RAA79481 for isp@FreeBSD.ORG; Wed, 17 May 2000 17:39:15 -0400 (EDT) (envelope-from wayne) Date: Wed, 17 May 2000 17:39:15 -0400 From: "Michael R. Wayne" To: isp@FreeBSD.ORG Subject: Re: Interface alias accounting? Message-ID: <20000517173915.F77680@staff.msen.com> References: <200001181742.JAA48615@gndrsh.dnsmgr.net> <038a01bfc041$83636640$213cd3cf@loop.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <038a01bfc041$83636640$213cd3cf@loop.com>; from dwplists@loop.com on Wed, May 17, 2000 at 01:50:13PM -0700 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, May 17, 2000 at 01:50:13PM -0700, D. W. Piper wrote: > Hi folks, > > I'm trying to find out how to get IP accounting information for web > hosting where multiple IPs are aliased to the same interface. I seem to > recall seeing something about it a few weeks ago, but I've searched the > archives, and can't seem to find the information I'm looking for. If I > recall correctly, it involved compiling in some kernel option or other. > Can anybody help out? BSD/OS does this per interface right on the box, FreeBSD seems not to. We've been trying for several months to get a straight answer regarding FreeBSD, nobody seems to know whether it's a bug, oversight or what. Reference information: BSD/OS % netstat -ins | egrep '^(Name|lo0)' | head -10 Name Index Address Ipkts Ierrs Opkts Oerrs Coll Drop lo0 2 825692 0 825692 0 0 0 lo0 2 127.0.0.1 513811 486253 lo0 2 148.59.14.8 934 1045 lo0 2 148.59.14.33 943857 1217321 lo0 2 148.59.14.20 655903 715413 lo0 2 148.59.14.21 655256 828339 lo0 2 148.59.14.22 30697 32327 lo0 2 148.59.14.23 34691 43438 lo0 2 148.59.14.24 108729 127598 Freebsd % netstat -ins | egrep '^(Name|lo0)' | head -10 Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll lo0 16384 287 0 287 0 0 lo0 16384 127 127.0.0.1 287 0 287 0 0 lo0 16384 139.171.3/32 139.171.3.0 287 0 287 0 0 lo0 16384 139.171.3.1/3 139.171.3.1 287 0 287 0 0 lo0 16384 139.171.3.2/3 139.171.3.2 287 0 287 0 0 lo0 16384 139.171.3.3/3 139.171.3.3 287 0 287 0 0 lo0 16384 139.171.3.4/3 139.171.3.4 287 0 287 0 0 lo0 16384 139.171.3.5/3 139.171.3.5 287 0 287 0 0 lo0 16384 139.171.3.6/3 139.171.3.6 287 0 287 0 0 /\/\ \/\/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message